3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler('myerrorhandler'); set_exception_handler('myexceptionhandler'); function myfunc(stdClass $a) {} function myerrorhandler($errno, $errstr, $errfile, $errline, $errcontext) { echo "Error handler\n$errno\n$errstr\n"; } function myexceptionhandler($e) { echo "Exception handler\n";var_dump($e); } myfunc('iamnotaclass');

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.0070.01416.73
8.3.50.0160.00521.95
8.3.40.0100.00518.75
8.3.30.0160.00718.72
8.3.20.0110.00320.39
8.3.10.0050.00323.61
8.3.00.0080.00019.79
8.2.180.0150.00018.29
8.2.170.0060.01222.96
8.2.160.0070.00720.32
8.2.150.0030.00624.18
8.2.140.0000.00724.66
8.2.130.0080.00020.95
8.2.120.0030.00626.35
8.2.110.0090.00022.11
8.2.100.0090.00317.84
8.2.90.0000.00817.91
8.2.80.0040.00417.97
8.2.70.0030.00617.74
8.2.60.0040.00417.68
8.2.50.0040.00418.07
8.2.40.0000.00822.28
8.2.30.0040.00420.51
8.2.20.0040.00417.78
8.2.10.0040.00417.88
8.2.00.0040.00418.00
8.1.280.0140.00325.92
8.1.270.0050.00320.14
8.1.260.0080.00028.09
8.1.250.0040.00428.09
8.1.240.0000.00824.02
8.1.230.0040.00722.82
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0040.00417.24
8.1.180.0000.00918.10
8.1.170.0000.00818.54
8.1.160.0070.00020.73
8.1.150.0080.00018.77
8.1.140.0020.00519.39
8.1.130.0070.00017.32
8.1.120.0040.00317.32
8.1.110.0000.00717.23
8.1.100.0040.00417.35
8.1.90.0000.00717.25
8.1.80.0050.00317.23
8.1.70.0000.00717.32
8.1.60.0030.00617.54
8.1.50.0030.00617.51
8.1.40.0000.00917.36
8.1.30.0040.00417.58
8.1.20.0050.00217.50
8.1.10.0030.00617.49
8.1.00.0060.00317.46
8.0.300.0040.00419.64
8.0.290.0080.00016.88
8.0.280.0030.00318.46
8.0.270.0040.00417.26
8.0.260.0040.00416.89
8.0.250.0000.00717.02
8.0.240.0000.00616.98
8.0.230.0000.00716.84
8.0.220.0040.00416.80
8.0.210.0040.00316.85
8.0.200.0030.00316.91
8.0.190.0060.00316.95
8.0.180.0040.00416.97
8.0.170.0080.00016.95
8.0.160.0000.00716.96
8.0.150.0070.00016.81
8.0.140.0060.00316.85
8.0.130.0030.00313.32
8.0.120.0050.00216.80
8.0.110.0030.00516.93
8.0.100.0040.00416.88
8.0.90.0040.00416.86
8.0.80.0050.01116.88
8.0.70.0040.00416.72
8.0.60.0000.00716.93
8.0.50.0040.00317.01
8.0.30.0150.00517.16
8.0.20.0100.00917.40
8.0.10.0030.00516.95
8.0.00.0060.01216.73
7.4.330.0000.00516.66
7.4.320.0000.00716.34
7.4.300.0000.00616.36
7.4.290.0030.00316.52
7.4.280.0040.00416.45
7.4.270.0000.00616.43
7.4.260.0070.00016.53
7.4.250.0070.00016.39
7.4.240.0010.00616.44
7.4.230.0070.00016.65
7.4.220.0060.01216.61
7.4.210.0050.01216.47
7.4.200.0070.00016.28
7.4.160.0040.01116.63
7.4.150.0090.00917.40
7.4.140.0140.01117.86
7.4.130.0060.01116.55
7.4.120.0150.00616.55
7.4.110.0070.01116.50
7.4.100.0090.00916.38
7.4.90.0070.01116.63
7.4.80.0040.01519.39
7.4.70.0110.00516.52
7.4.60.0120.00616.33
7.4.50.0030.00916.54
7.4.40.0030.01316.39
7.4.30.0060.01216.30
7.4.00.0100.00815.10
7.3.330.0030.00313.23
7.3.320.0000.00513.16
7.3.310.0000.00816.30
7.3.300.0030.00316.31
7.3.290.0070.00016.20
7.3.280.0070.00916.33
7.3.270.0100.00717.40
7.3.260.0110.00816.50
7.3.250.0130.00816.39
7.3.240.0090.01016.42
7.3.230.0100.00816.42
7.3.210.0130.00616.45
7.3.200.0140.00316.44
7.3.190.0030.01316.33
7.3.180.0040.01216.58
7.3.170.0100.01316.57
7.3.160.0170.00316.48
7.3.120.0080.00914.73
7.3.110.0100.01014.76
7.3.100.0060.00914.75
7.3.90.0000.01114.98
7.3.80.0120.00014.86
7.3.70.0030.01014.83
7.3.60.0060.00314.53
7.3.50.0040.00714.88
7.3.40.0090.00014.82
7.3.30.0040.01114.89
7.3.20.0000.01516.68
7.3.10.0110.00416.60
7.3.00.0040.00716.54
7.2.330.0070.01116.68
7.2.320.0140.01016.52
7.2.310.0060.01116.24
7.2.300.0120.00616.38
7.2.290.0110.01116.66
7.2.250.0130.00314.90
7.2.240.0130.00714.43
7.2.230.0060.00914.85
7.2.220.0040.01115.11
7.2.210.0040.00914.89
7.2.200.0000.01514.74
7.2.190.0070.00314.86
7.2.180.0080.00814.83
7.2.170.0090.00614.96
7.2.60.0030.00716.77
7.2.00.0060.00919.43
7.1.330.0070.00715.71
7.1.320.0030.00915.73
7.1.310.0050.00515.97
7.1.300.0120.00415.82
7.1.290.0030.01015.39
7.1.280.0030.01115.88
7.1.270.0060.00615.57
7.1.260.0070.00415.77
7.1.200.0090.00315.61
7.1.100.0000.01317.91
7.1.70.0030.01216.95
7.1.60.0120.01219.52
7.1.50.0000.01116.64
7.1.00.0000.08022.33
7.0.200.0080.00016.63
7.0.60.0100.07720.04
7.0.50.0000.04317.98
7.0.40.0130.08020.38
7.0.30.0270.06720.34
7.0.20.0230.07020.23
7.0.10.0100.07020.12
7.0.00.0070.07320.20
5.6.280.0000.03321.13
5.6.210.0170.06720.67
5.6.200.0000.05318.22
5.6.190.0100.04720.46
5.6.180.0230.04020.63
5.6.170.0270.05020.71
5.6.160.0200.06020.50
5.6.150.0000.04318.14
5.6.140.0130.04718.14
5.6.130.0030.08318.11
5.6.120.0070.04720.99
5.6.110.0100.08321.04
5.6.100.0130.06721.12
5.6.90.0100.08320.90
5.6.80.0170.07320.46
5.5.350.0230.06720.47
5.5.340.0100.07017.92
5.5.330.0100.07320.25
5.5.320.0100.04320.29
5.5.310.0230.04020.35
5.5.300.0000.04018.01
5.5.290.0070.04318.00
5.5.280.0070.08320.66
5.5.270.0130.07720.85
5.5.260.0030.08020.74
5.5.250.0070.08020.55
5.5.240.4270.04020.37

preferences:
59.53 ms | 401 KiB | 5 Q