3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler('exceptions_error_handler'); function exceptions_error_handler($severity, $message, $filename, $lineno) { var_dump($message); } error_reporting(E_ALL); $a = []; echo $a["foo"]; echo "foo"; error_reporting(E_ALL & ~E_NOTICE); $a = []; echo $a["foo"]; echo "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.0070.01416.50
8.3.50.0070.00716.14
8.3.40.0140.00318.66
8.3.30.0070.01318.71
8.3.20.0040.00420.29
8.3.10.0050.00321.90
8.3.00.0030.00619.51
8.2.180.0110.00718.43
8.2.170.0110.00322.96
8.2.160.0030.01020.43
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00420.81
8.2.120.0040.00426.35
8.2.110.0030.00620.89
8.2.100.0080.00418.16
8.2.90.0040.00419.35
8.2.80.0040.00418.16
8.2.70.0030.00617.75
8.2.60.0040.00417.93
8.2.50.0050.00318.10
8.2.40.0040.00420.46
8.2.30.0000.00821.08
8.2.20.0000.00718.14
8.2.10.0000.00818.17
8.2.00.0050.00318.11
8.1.280.0140.00425.92
8.1.270.0040.00422.14
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0040.00423.92
8.1.230.0000.01119.18
8.1.220.0000.00817.76
8.1.210.0080.00018.77
8.1.200.0100.00017.25
8.1.190.0040.00417.23
8.1.180.0070.00018.10
8.1.170.0000.00818.64
8.1.160.0030.00319.02
8.1.150.0070.00020.65
8.1.140.0040.00419.43
8.1.130.0060.00318.76
8.1.120.0090.00017.34
8.1.110.0040.00417.45
8.1.100.0040.00417.39
8.1.90.0000.00717.32
8.1.80.0040.00417.43
8.1.70.0070.00017.30
8.1.60.0000.00817.54
8.1.50.0030.00517.54
8.1.40.0000.00817.45
8.1.30.0050.00317.61
8.1.20.0040.00417.59
8.1.10.0000.00717.47
8.1.00.0040.00417.58
8.0.300.0040.00418.77
8.0.290.0030.00516.75
8.0.280.0000.00718.39
8.0.270.0000.00717.26
8.0.260.0030.00318.45
8.0.250.0000.00817.01
8.0.240.0070.00016.96
8.0.230.0030.00316.94
8.0.220.0030.00316.99
8.0.210.0000.00616.90
8.0.200.0070.00016.85
8.0.190.0000.00816.82
8.0.180.0000.01116.76
8.0.170.0000.00716.92
8.0.160.0030.00316.92
8.0.150.0040.00416.87
8.0.140.0030.00416.89
8.0.130.0000.00913.29
8.0.120.0050.00316.90
8.0.110.0040.00416.70
8.0.100.0030.00516.77
8.0.90.0040.00416.75
8.0.80.0110.01116.90
8.0.70.0000.00816.96
8.0.60.0030.00416.79
8.0.50.0040.00416.94
8.0.30.0120.00717.13
8.0.20.0110.00917.40
8.0.10.0040.00416.88
8.0.00.0100.00716.97
7.4.330.0000.00515.55
7.4.320.0030.00316.49
7.4.300.0060.00016.37
7.4.290.0080.00016.46
7.4.280.0000.00816.44
7.4.270.0040.00416.57
7.4.260.0070.00016.46
7.4.250.0080.00016.51
7.4.240.0030.00316.53
7.4.230.0030.00316.29
7.4.220.0090.00916.61
7.4.210.0080.01016.47
7.4.200.0000.00716.48
7.4.160.0070.01016.61
7.4.150.0090.00917.40
7.4.140.0080.01017.86
7.4.130.0190.00616.59
7.4.120.0140.00616.63
7.4.110.0140.00416.61
7.4.100.0090.01516.67
7.4.90.0150.00316.40
7.4.80.0100.00719.39
7.4.70.0110.00516.35
7.4.60.0060.01016.48
7.4.50.0090.00616.72
7.4.40.0030.01316.54
7.4.30.0110.00616.68
7.4.00.0050.01115.01
7.3.330.0050.00013.07
7.3.320.0030.00313.32
7.3.310.0000.00616.16
7.3.300.0040.00416.19
7.3.290.0030.00316.32
7.3.280.0080.01016.28
7.3.270.0070.01017.40
7.3.260.0080.00816.42
7.3.250.0090.00916.43
7.3.240.0050.01116.42
7.3.230.0150.00316.57
7.3.210.0040.01316.37
7.3.200.0110.00716.43
7.3.190.0150.00616.29
7.3.180.0090.00916.39
7.3.170.0060.01016.41
7.3.160.0070.00816.63
7.3.120.0060.01215.01
7.3.110.0070.01014.85
7.3.100.0070.01114.52
7.3.90.0060.00614.88
7.3.80.0090.00614.96
7.3.70.0030.01014.59
7.3.60.0070.00714.61
7.3.50.0100.00014.85
7.3.40.0080.00014.83
7.3.30.0030.01014.93
7.3.20.0100.00716.64
7.3.10.0060.01216.64
7.3.00.0060.00616.64
7.2.330.0130.01316.34
7.2.320.0120.00416.63
7.2.310.0100.00716.57
7.2.300.0120.00916.58
7.2.290.0080.00816.67
7.2.250.0070.01014.95
7.2.240.0060.01215.03
7.2.230.0090.00315.18
7.2.220.0110.00314.94
7.2.210.0140.00314.87
7.2.200.0000.01314.98
7.2.190.0070.00714.84
7.2.180.0100.00314.67
7.2.170.0030.01014.96
7.2.160.0120.00314.88
7.2.150.0100.00716.54
7.2.140.0090.00016.77
7.2.130.0070.01116.90
7.2.120.0070.00716.84
7.2.110.0030.01517.02
7.2.100.0130.00316.62
7.2.90.0090.00616.61
7.2.80.0080.00516.79
7.2.70.0060.00917.05
7.2.60.0070.00516.78
7.2.50.0030.01016.85
7.2.40.0060.00916.76
7.2.30.0070.01116.68
7.2.20.0100.00716.96
7.2.10.0060.00916.80
7.2.00.0050.00918.02
7.1.330.0040.00715.82
7.1.320.0070.00315.87
7.1.310.0070.00715.84
7.1.300.0030.01015.49
7.1.290.0040.00815.84
7.1.280.0080.00315.80
7.1.270.0070.01115.79
7.1.260.0060.00615.71
7.1.250.0000.01115.52
7.1.240.0000.01415.79
7.1.230.0060.01215.70
7.1.220.0030.01015.82
7.1.210.0000.01415.85
7.1.200.0060.00815.66
7.1.190.0060.00615.88
7.1.180.0030.00715.74
7.1.170.0000.01315.81
7.1.160.0080.00415.87
7.1.150.0060.00615.70
7.1.140.0060.00615.77
7.1.130.0060.00315.66
7.1.120.0130.00015.53
7.1.110.0030.00715.91
7.1.100.0040.00916.99
7.1.90.0040.00415.74
7.1.80.0000.01215.82
7.1.70.0040.00716.53
7.1.60.0140.00725.33
7.1.50.0090.01025.27
7.1.40.0090.01024.96
7.1.30.0140.00525.12
7.1.20.0080.01125.22
7.1.10.0050.00816.09
7.1.00.0090.00516.17
7.0.330.0000.01215.12
7.0.320.0100.00315.00
7.0.310.0000.00815.38
7.0.300.0100.00315.34
7.0.290.0040.00415.29
7.0.280.0140.00015.16
7.0.270.0100.00015.39
7.0.260.0030.01015.30
7.0.250.0030.01215.33
7.0.240.0040.00415.62
7.0.230.0040.00415.42
7.0.220.0040.00815.32
7.0.210.0040.00715.48
7.0.200.0090.00415.91
7.0.190.0050.00815.78
7.0.180.0050.00715.75
7.0.170.0080.00515.77
7.0.160.0060.00615.73
7.0.150.0050.00615.66
7.0.140.0070.00815.84
7.0.130.0060.00515.71
7.0.120.0080.00615.96
7.0.110.0050.00615.82
7.0.100.0030.00915.69
7.0.90.0060.00315.61
7.0.80.0010.01116.00
7.0.70.0050.00915.83
7.0.60.0080.00415.59
7.0.50.0080.00616.03
7.0.40.0080.00414.93
7.0.30.0030.00914.99
7.0.20.0050.01214.91
7.0.10.0050.00814.70
7.0.00.0070.00314.98
5.6.400.0070.00314.44
5.6.390.0080.00414.40
5.6.380.0100.00314.32
5.6.370.0120.00314.77
5.6.360.0120.00314.79
5.6.350.0030.01014.29
5.6.340.0030.01014.67
5.6.330.0060.00614.50
5.6.320.0050.00514.07
5.6.310.0100.00714.34
5.6.300.0040.01114.68
5.6.290.0100.00014.47
5.6.280.0000.00814.53
5.6.270.0040.00714.30
5.6.260.0030.01014.70
5.6.250.0100.00314.47
5.6.240.0070.00314.41
5.6.230.0070.00714.46
5.6.220.0000.00814.33
5.6.210.0060.00614.50
5.6.200.0090.00314.25
5.6.190.0040.00414.30
5.6.180.0000.01014.30
5.6.170.0090.00614.83
5.6.160.0070.00714.48
5.6.150.0100.00314.16
5.6.140.0000.01514.43
5.6.130.0110.00414.48
5.6.120.0030.00914.34
5.6.110.0000.01214.32
5.6.100.0030.00814.48
5.6.90.0120.00314.29
5.6.80.0060.00614.13
5.6.70.0000.01514.24
5.6.60.0060.00914.32
5.6.50.0170.00014.29
5.6.40.0030.00714.21
5.6.30.0000.01614.20
5.6.20.0040.00814.55
5.6.10.0060.00614.30
5.6.00.0070.00714.46

preferences:
51.13 ms | 401 KiB | 5 Q