3v4l.org

run code in 300+ PHP versions simultaneously
<?php function exception_error_handler($errno, $errstr, $errfile, $errline ) { throw new ErrorException($errstr); } ++$foo; set_error_handler("exception_error_handler"); try { preg_match("/foo(+/", null); echo "+value\n"; } catch (ErrorException $e) { echo "-fail", $e->getMessage(), "\n"; } restore_error_handler(); ++$bar;

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0120.00316.88
8.3.50.0090.00921.95
8.3.40.0090.00618.67
8.3.30.0110.00419.27
8.3.20.0030.00520.21
8.3.10.0080.00023.65
8.3.00.0030.00519.01
8.2.180.0040.01116.47
8.2.170.0070.00722.96
8.2.160.0090.00920.33
8.2.150.0070.00024.18
8.2.140.0060.00324.66
8.2.130.0070.00426.16
8.2.120.0040.00420.89
8.2.110.0060.00322.20
8.2.100.0040.00719.51
8.2.90.0040.00419.23
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0000.01117.77
8.2.50.0080.00018.07
8.2.40.0080.00020.07
8.2.30.0000.00718.42
8.2.20.0050.00317.81
8.2.10.0040.00418.18
8.2.00.0070.00017.72
8.1.280.0140.00025.92
8.1.270.0080.00023.88
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0150.00723.98
8.1.230.0110.00019.23
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0100.00317.35
8.1.190.0050.00317.35
8.1.180.0000.00818.10
8.1.170.0070.00318.37
8.1.160.0030.00522.02
8.1.150.0000.00818.63
8.1.140.0030.00617.44
8.1.130.0000.00717.92
8.1.120.0030.00317.35
8.1.110.0020.00517.52
8.1.100.0040.00417.46
8.1.90.0000.00817.36
8.1.80.0040.00417.38
8.1.70.0040.00417.42
8.1.60.0000.00817.57
8.1.50.0040.00417.43
8.1.40.0030.00617.55
8.1.30.0090.00017.68
8.1.20.0000.00817.54
8.1.10.0050.00217.44
8.1.00.0000.00717.40
8.0.300.0080.00018.77
8.0.290.0040.00417.05
8.0.280.0000.00818.46
8.0.270.0000.00717.20
8.0.260.0030.00317.31
8.0.250.0000.00716.87
8.0.240.0060.00017.04
8.0.230.0000.00716.95
8.0.220.0000.00716.77
8.0.210.0000.00716.86
8.0.200.0030.00316.99
8.0.190.0040.00416.86
8.0.180.0000.00716.94
8.0.170.0000.00816.95
8.0.160.0000.00816.93
8.0.150.0070.00016.97
8.0.140.0040.00416.90
8.0.130.0060.00313.32
8.0.120.0000.00717.01
8.0.110.0040.00416.93
8.0.100.0070.00017.01
8.0.90.0000.00816.82
8.0.80.0060.00916.97
8.0.70.0050.00316.94
8.0.60.0000.00816.95
8.0.50.0040.00416.99
8.0.30.0070.01117.03
8.0.20.0110.01117.40
8.0.10.0030.00516.95
8.0.00.0100.01016.88
7.4.330.0030.00315.15
7.4.320.0000.00616.71
7.4.300.0040.00416.58
7.4.290.0000.00716.60
7.4.280.0080.00316.63
7.4.270.0050.00316.56
7.4.260.0070.00016.66
7.4.250.0000.00716.68
7.4.240.0040.00416.68
7.4.230.0000.00716.60
7.4.220.0090.00916.61
7.4.210.0130.00616.79
7.4.200.0000.00716.50
7.4.190.0050.00216.84
7.4.160.0050.01016.57
7.4.150.0140.00917.40
7.4.140.0070.01217.86
7.4.130.0090.01016.64
7.4.120.0060.01116.55
7.4.110.0130.00616.70
7.4.100.0040.01716.60
7.4.90.0110.00716.73
7.4.80.0080.01419.39
7.4.70.0030.01916.55
7.4.60.0090.01216.66
7.4.50.0030.00316.51
7.4.40.0140.00316.72
7.4.30.0110.00616.68
7.4.00.0070.01015.12
7.3.330.0030.00313.36
7.3.320.0050.00013.41
7.3.310.0040.00416.41
7.3.300.0030.00316.39
7.3.290.0130.01016.34
7.3.280.0080.01116.38
7.3.270.0100.00717.40
7.3.260.0180.00416.50
7.3.250.0120.00616.63
7.3.240.0100.00716.43
7.3.230.0130.01016.39
7.3.210.0040.01316.48
7.3.200.0030.01419.39
7.3.190.0030.01316.26
7.3.180.0050.01016.50
7.3.170.0070.01016.43
7.3.160.0080.00816.52
7.3.120.0040.00815.11
7.2.330.0120.01216.69
7.2.320.0060.01916.81
7.2.310.0120.00916.75
7.2.300.0080.00816.75
7.2.290.0130.00316.68
7.2.00.0060.01219.34
7.1.100.0040.00717.97
7.1.70.0060.00617.36
7.1.60.0090.01519.70
7.1.50.0080.00416.81
7.1.00.0070.07322.28
7.0.200.0270.00614.68
7.0.140.0130.06322.09
7.0.60.0000.05719.99
7.0.50.0000.07317.91
7.0.40.0100.07320.25
7.0.30.0070.05720.04
7.0.20.0270.08020.25
7.0.10.0030.08320.13
7.0.00.0030.05020.23
5.6.280.0000.07721.07
5.6.210.0070.08720.66
5.6.200.0030.07318.17
5.6.190.0130.08020.58
5.6.180.0200.08720.63
5.6.170.0200.08020.62
5.6.160.0000.05020.43
5.6.150.0170.06018.27
5.6.140.0000.04318.25
5.6.130.0030.06018.15
5.6.120.0070.05021.14
5.6.110.0130.07721.03
5.6.100.0000.04321.04
5.6.90.0030.04721.11
5.6.80.0000.04020.52
5.6.70.0370.06720.40
5.5.350.0100.07320.30
5.5.340.0070.06017.95
5.5.330.0070.05720.27
5.5.320.0330.05320.36
5.5.310.0070.05320.30
5.5.300.0070.07017.99
5.5.290.0200.06717.91
5.5.280.0030.09020.86
5.5.270.0030.08720.68
5.5.260.0100.08020.80
5.5.250.0130.08020.50
5.5.240.0000.08720.18
5.4.450.0100.04719.55
5.4.440.0100.05019.39
5.4.430.0100.04019.27
5.4.420.0170.04019.47
5.4.410.0130.03719.20
5.4.400.0030.03319.12
5.4.390.0370.03019.09
5.4.380.0100.06318.72
5.4.370.0130.05318.79
5.4.360.0270.06318.58
5.4.350.0270.04718.79
5.4.340.0070.06018.80
5.4.320.0080.03712.51
5.4.310.0080.03612.50
5.4.300.0070.04012.50
5.4.290.0020.04412.50
5.4.280.0060.03612.39
5.4.270.0070.03612.40
5.4.260.0050.04312.39
5.4.250.0040.03912.40
5.4.240.0060.03912.39
5.4.230.0080.03812.39
5.4.220.0080.03512.39
5.4.210.0060.04112.39
5.4.200.0040.04212.39
5.4.190.0030.03812.38
5.4.180.0050.03612.39
5.4.170.0070.03412.40
5.4.160.0080.03312.39
5.4.150.0050.03812.39
5.4.140.0060.04112.07
5.4.130.0050.04212.05
5.4.120.0070.03312.02
5.4.110.0050.03712.02
5.4.100.0060.03512.02
5.4.90.0080.03412.01
5.4.80.0100.03412.01
5.4.70.0060.03512.01
5.4.60.0070.03512.01
5.4.50.0090.04812.01
5.4.40.0050.04812.00
5.4.30.0040.03712.00
5.4.20.0030.03712.00
5.4.10.0070.03512.00
5.4.00.0090.04111.48
5.3.290.0030.04512.80
5.3.280.0050.04212.71
5.3.270.0070.03912.72
5.3.260.0050.04012.72
5.3.250.0060.03712.72
5.3.240.0100.03312.72
5.3.230.0030.04312.71
5.3.220.0040.04112.68
5.3.210.0070.04012.68
5.3.200.0050.03812.68
5.3.190.0070.04912.68
5.3.180.0040.04812.67
5.3.170.0090.03912.67
5.3.160.0070.03512.67
5.3.150.0080.03612.67
5.3.140.0060.04112.66
5.3.130.0070.05512.66
5.3.120.0020.04312.66
5.3.110.0090.03712.66
5.3.100.0050.04012.13
5.3.90.0060.05212.11
5.3.80.0030.04012.11
5.3.70.0050.03712.10
5.3.60.0060.03812.09
5.3.50.0050.03812.04
5.3.40.0050.05312.03
5.3.30.0050.05312.00
5.3.20.0050.04011.78
5.3.10.0090.04911.74
5.3.00.0060.05311.73
5.2.170.0070.0349.23
5.2.160.0040.0319.23
5.2.150.0100.0299.23
5.2.140.0070.0349.23
5.2.130.0110.0479.18
5.2.120.0120.0379.19
5.2.110.0070.0309.20
5.2.100.0090.0279.19
5.2.90.0070.0289.19
5.2.80.0040.0339.18
5.2.70.0070.0309.18
5.2.60.0080.0339.14
5.2.50.0090.0379.11
5.2.40.0040.0329.08
5.2.30.0050.0379.06
5.2.20.0020.0359.05
5.2.10.0090.0278.94
5.2.00.0070.0278.80
5.1.60.0030.0278.09
5.1.50.0070.0298.09
5.1.40.0040.0268.07
5.1.30.0060.0268.41
5.1.20.0040.0278.43
5.1.10.0050.0258.16
5.1.00.0060.0268.16
5.0.50.0070.0196.64
5.0.40.0060.0176.51
5.0.30.0030.0326.32
5.0.20.0010.0236.28
5.0.10.0050.0196.26
5.0.00.0020.0336.25
4.4.90.0030.0154.78
4.4.80.0040.0144.76
4.4.70.0050.0134.75
4.4.60.0030.0164.75
4.4.50.0040.0144.77
4.4.40.0050.0244.71
4.4.30.0040.0214.75
4.4.20.0030.0154.84
4.4.10.0010.0184.85
4.4.00.0010.0274.76
4.3.110.0050.0144.67
4.3.100.0020.0164.66
4.3.90.0020.0154.64
4.3.80.0040.0224.59
4.3.70.0030.0144.63
4.3.60.0030.0144.63
4.3.50.0020.0164.62
4.3.40.0040.0224.54
4.3.30.0020.0163.30
4.3.20.0010.0173.28
4.3.10.0020.0163.24
4.3.00.0070.01351.50

preferences:
32.35 ms | 401 KiB | 5 Q