3v4l.org

run code in 300+ PHP versions simultaneously
<?php $error_handler = function($severity, $message, $filename, $lineno) { echo "error handled"; throw new ErrorException($message, 0, $severity, $filename, $lineno); }; $exception_handler = function($exception) { echo "exception handled"; self::invokeHttpError(500); }; set_error_handler($error_handler, E_ALL | E_STRICT); set_exception_handler($exception_handler); ///////////////////////////////////////////////////////// $fn = function() { $application->test(); // $application is undefined }; $fn();

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.00616.46
8.3.50.0050.01217.26
8.3.40.0070.00718.88
8.3.30.0040.01118.89
8.3.20.0090.00018.87
8.3.10.0080.00020.61
8.3.00.0060.00319.51
8.2.180.0070.01316.63
8.2.170.0110.00422.96
8.2.160.0140.00322.26
8.2.150.0090.00024.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00419.83
8.2.110.0100.00020.93
8.2.100.0080.00417.84
8.2.90.0030.00519.27
8.2.80.0040.00418.05
8.2.70.0050.00317.59
8.2.60.0000.00818.04
8.2.50.0050.00318.07
8.2.40.0000.00718.22
8.2.30.0040.00418.07
8.2.20.0020.00517.72
8.2.10.0000.00817.64
8.2.00.0040.00417.74
8.1.280.0090.00625.92
8.1.270.0110.00724.66
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0060.00320.87
8.1.230.0040.00820.82
8.1.220.0000.00817.74
8.1.210.0000.00818.92
8.1.200.0040.00417.36
8.1.190.0050.00317.41
8.1.180.0090.00018.10
8.1.170.0000.00718.60
8.1.160.0040.00418.81
8.1.150.0000.00818.55
8.1.140.0070.00017.46
8.1.130.0040.00417.74
8.1.120.0040.00417.36
8.1.110.0000.00817.36
8.1.100.0050.00217.47
8.1.90.0000.00817.48
8.1.80.0040.00317.43
8.1.70.0000.00717.41
8.1.60.0000.00717.51
8.1.50.0030.00617.43
8.1.40.0000.00717.57
8.1.30.0070.00017.61
8.1.20.0030.00617.54
8.1.10.0030.00517.48
8.1.00.0040.00417.51
8.0.300.0040.00419.90
8.0.290.0040.00416.75
8.0.280.0000.00718.40
8.0.270.0030.00317.29
8.0.260.0030.00316.88
8.0.250.0040.00416.84
8.0.240.0000.00716.97
8.0.230.0060.00016.91
8.0.220.0000.00716.84
8.0.210.0030.00316.88
8.0.200.0000.00617.00
8.0.190.0050.00216.91
8.0.180.0000.00716.89
8.0.170.0050.00316.85
8.0.160.0030.00316.98
8.0.150.0060.00316.85
8.0.140.0060.00416.83
8.0.130.0060.00013.37
8.0.120.0000.00916.88
8.0.110.0000.00716.89
8.0.100.0030.00516.77
8.0.90.0000.00716.90
8.0.80.0060.00916.84
8.0.70.0040.00416.89
8.0.60.0050.00216.94
8.0.50.0000.00716.80
8.0.30.0100.01216.86
8.0.20.0110.00817.10
8.0.10.0030.00317.05
8.0.00.0100.01216.77
7.4.330.0020.00212.92
7.4.320.0030.00316.50
7.4.300.0000.00616.63
7.4.290.0000.00716.51
7.4.280.0040.00416.42
7.4.270.0050.00316.46
7.4.260.0050.00013.23
7.4.250.0060.00316.50
7.4.240.0000.00716.43
7.4.230.0070.00016.60
7.4.220.0100.01616.65
7.4.210.0090.00916.52
7.4.200.0040.00416.42
7.4.190.0070.00016.66
7.4.160.0040.01116.43
7.4.150.0070.01016.52
7.4.140.0110.00716.51
7.4.130.0160.00216.56
7.4.120.0070.01116.44
7.4.110.0090.00616.54
7.4.100.0150.00316.33
7.4.90.0170.00016.50
7.4.80.0090.00816.64
7.4.70.0130.01016.23
7.4.60.0070.01016.59
7.4.50.0000.00516.48
7.4.40.0070.00416.60
7.4.30.0060.01016.67
7.4.00.0040.01115.13
7.3.330.0030.00313.29
7.3.320.0030.00313.13
7.3.310.0070.00016.14
7.3.300.0060.00016.29
7.3.290.0020.01316.21
7.3.280.0060.00916.31
7.3.270.0100.00716.53
7.3.260.0120.00516.48
7.3.250.0090.00816.36
7.3.240.0040.01216.48
7.3.230.0100.00716.56
7.3.210.0080.00816.32
7.3.200.0120.01116.29
7.3.190.0070.01016.41
7.3.180.0120.00916.32
7.3.170.0090.00616.45
7.3.160.0050.01116.45
7.3.120.0090.00614.82
7.3.110.0030.01714.86
7.3.100.0130.00314.50
7.3.90.0040.01514.78
7.3.80.0030.01314.86
7.3.70.0000.01814.84
7.3.60.0000.01414.61
7.3.50.0030.01314.69
7.3.40.0080.00814.68
7.3.30.0030.00714.48
7.3.20.0070.00716.66
7.3.10.0020.01116.58
7.3.00.0060.00816.57
7.2.330.0150.00316.85
7.2.320.0030.01416.65
7.2.310.0190.00316.81
7.2.300.0080.00816.31
7.2.290.0070.01016.70
7.2.250.0070.01014.85
7.2.240.0040.01515.11
7.2.230.0070.01314.91
7.2.220.0090.00014.96
7.2.210.0100.00315.30
7.2.200.0080.00414.91
7.2.190.0100.00314.74
7.2.180.0060.00915.05
7.2.170.0030.01014.83
7.2.130.0110.00716.84
7.2.120.0030.00916.92
7.2.110.0060.01216.61
7.2.100.0030.00917.00
7.2.90.0100.00016.83
7.2.80.0040.00816.96
7.2.70.0100.00316.95
7.2.60.0060.00816.92
7.2.50.0120.00416.86
7.2.40.0090.00316.97
7.2.30.0030.00916.91
7.2.20.0030.00616.61
7.2.10.0040.01416.94
7.2.00.0020.01118.18
7.1.330.0030.01015.60
7.1.320.0030.00615.62
7.1.310.0060.01315.45
7.1.300.0080.00015.57
7.1.290.0080.00615.93
7.1.280.0000.01415.77
7.1.270.0040.00415.65
7.1.260.0060.00615.54
7.1.250.0080.00315.77
7.1.200.0030.00915.57
7.1.100.0120.00018.21
7.1.70.0000.01017.11
7.1.60.0060.01919.40
7.1.50.0070.00416.81
7.1.00.0000.06722.43
7.0.200.0100.00714.75
7.0.140.0000.07721.98
7.0.120.0100.05322.04
7.0.60.0030.04320.05
7.0.50.0030.08017.89
7.0.40.0100.06020.25
7.0.30.0400.05320.16
7.0.20.0230.06020.24
7.0.10.0070.08320.33
7.0.00.0030.09320.25
5.6.280.0070.07020.79
5.6.210.0000.04320.73
5.6.200.0100.04718.25
5.6.190.0030.08320.77
5.6.180.0270.07320.55
5.6.170.0370.06720.44
5.6.160.0070.06320.50
5.6.150.0030.05018.17
5.6.140.0070.03718.28
5.6.130.0030.08318.18
5.6.120.0070.08321.19
5.6.110.0100.06321.02
5.6.100.0030.08720.89
5.6.90.0070.08721.11
5.6.80.0030.04020.38
5.6.70.3430.02720.38
5.5.350.0100.07320.31
5.5.340.0070.06018.02
5.5.330.0130.07720.29
5.5.320.0170.05720.28
5.5.310.0200.04720.34
5.5.300.0100.08017.98
5.5.290.0030.04717.94
5.5.280.0130.08320.88
5.5.270.0100.07720.85
5.5.260.0030.04320.74
5.5.250.0000.04320.63
5.5.240.0200.06320.24
5.4.450.0100.03319.49
5.4.440.0070.03719.18
5.4.430.0070.03319.42
5.4.420.0030.04019.30
5.4.410.0030.03719.44
5.4.400.0100.03019.16
5.4.390.0030.07318.85
5.4.380.0030.03719.14
5.4.370.0070.03319.24
5.4.360.0130.03718.85
5.4.350.0070.03319.24
5.4.340.0070.03719.16
5.4.320.0000.04019.20
5.4.310.0070.03719.00
5.4.300.0030.04018.99
5.4.290.0030.03718.85
5.4.280.0000.04019.23
5.4.270.0070.03318.94
5.4.260.0000.04319.14
5.4.250.0030.03719.23
5.4.240.0030.08019.14
5.4.230.0100.04019.14
5.4.220.0070.06319.14
5.4.210.0130.06718.86
5.4.200.0030.07719.20
5.4.190.0130.03319.23
5.4.180.0100.07319.14
5.4.170.0130.05319.14
5.4.160.0230.06319.12
5.4.150.0100.07019.06
5.4.140.0100.04716.46
5.4.130.0100.07016.59
5.4.120.0100.07316.44
5.4.110.0070.06016.51
5.4.100.0070.05316.38
5.4.90.0000.06316.72
5.4.80.0100.05016.43
5.4.70.0070.04316.38
5.4.60.0130.06716.38
5.4.50.0100.05716.27
5.4.40.0030.04716.34
5.4.30.0030.04316.38
5.4.20.0070.03316.41
5.4.10.0000.04016.50
5.4.00.0030.04715.79
5.3.290.0000.04314.68
5.3.280.0100.06714.76
5.3.270.0070.07714.61
5.3.260.0030.05314.61
5.3.250.0070.07314.76
5.3.240.0070.07714.61
5.3.230.0130.05314.63
5.3.220.0070.07014.58
5.3.210.0100.04714.73
5.3.200.0130.07014.48
5.3.190.0100.04714.61
5.3.180.0070.05014.57
5.3.170.0100.03314.56
5.3.160.0030.07714.60
5.3.150.0030.05314.57
5.3.140.0070.05014.55
5.3.130.0130.07314.59
5.3.120.0100.05714.45
5.3.110.0100.03314.56
5.3.100.0100.06313.93
5.3.90.0100.06314.05
5.3.80.0070.04314.12
5.3.70.0070.03714.07
5.3.60.0070.07014.00
5.3.50.0070.04714.10
5.3.40.0030.04013.96
5.3.30.0070.06313.86
5.3.20.0100.03313.59
5.3.10.0030.06713.66
5.3.00.0030.05013.64
5.2.170.0100.06311.02
5.2.160.0030.05011.15
5.2.150.0070.05011.08
5.2.140.0070.06310.96
5.2.130.0070.02711.07
5.2.120.0000.03311.18
5.2.110.0100.06011.03
5.2.100.0070.04711.03
5.2.90.0070.05310.92
5.2.80.0170.03011.07
5.2.70.0030.06711.08
5.2.60.0130.05011.03
5.2.50.0030.06710.95
5.2.40.0030.06010.89
5.2.30.0100.03310.85
5.2.20.0030.03010.85
5.2.10.0030.03310.89
5.2.00.0000.04010.71
5.1.60.0000.03010.03
5.1.50.0070.04710.00
5.1.40.0030.0539.96
5.1.30.0030.04310.37
5.1.20.0030.03310.50
5.1.10.0100.03710.11
5.1.00.0030.0479.90
5.0.50.0000.0238.51
5.0.40.0030.0438.48
5.0.30.0030.0408.17
5.0.20.0030.0238.26
5.0.10.0130.0338.16
5.0.00.0030.0378.30
4.4.90.0030.0378.06
4.4.80.0030.0308.06
4.4.70.0000.0378.06
4.4.60.0000.0338.06
4.4.50.0030.0338.06
4.4.40.0030.0578.06
4.4.30.0000.0378.06
4.4.20.0030.0378.06
4.4.10.0000.0208.06
4.4.00.0000.0408.06
4.3.110.0030.0278.06
4.3.100.0000.0178.06
4.3.90.0000.0178.06
4.3.80.0000.0278.06
4.3.70.0030.0178.06
4.3.60.0070.0308.06
4.3.50.0030.0208.06
4.3.40.0030.0278.06
4.3.30.0000.0378.06
4.3.20.0030.0208.06
4.3.10.0000.0338.06
4.3.00.0030.0338.06

preferences:
44.62 ms | 401 KiB | 5 Q