3v4l.org

run code in 300+ PHP versions simultaneously
<?php function critical_error($error_number,$error_string,$error_file,$error_line,$error_context) { echo "<strong>error:</strong> echo ".$error_string; exit(); } set_error_handler("critical_error",8191); test(); exit;

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.0170.00416.88
8.3.50.0120.00518.16
8.3.40.0110.00718.66
8.3.30.0140.00718.79
8.3.20.0080.00018.74
8.3.10.0060.00320.52
8.3.00.0040.00417.25
8.2.180.0120.00618.41
8.2.170.0110.00722.96
8.2.160.0040.01122.26
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00817.50
8.2.110.0110.01121.04
8.2.100.0080.00317.91
8.2.90.0060.00320.96
8.2.80.0000.00717.79
8.2.70.0000.00817.63
8.2.60.0000.00817.93
8.2.50.0030.00618.07
8.2.40.0000.00818.22
8.2.30.0070.00017.92
8.2.20.0000.00717.71
8.2.10.0040.00417.73
8.2.00.0050.00217.66
8.1.280.0070.00725.92
8.1.270.0050.00224.66
8.1.260.0000.00826.35
8.1.250.0100.00328.09
8.1.240.0030.00722.41
8.1.230.0100.00321.01
8.1.220.0030.00517.74
8.1.210.0000.00918.77
8.1.200.0030.00617.23
8.1.190.0020.00517.28
8.1.180.0000.00818.10
8.1.170.0070.00018.70
8.1.160.0030.00618.66
8.1.150.0040.00418.39
8.1.140.0000.00917.23
8.1.130.0000.00717.68
8.1.120.0070.00017.23
8.1.110.0000.00717.37
8.1.100.0030.00617.36
8.1.90.0030.00317.37
8.1.80.0000.00717.23
8.1.70.0030.00317.17
8.1.60.0000.00717.43
8.1.50.0040.00417.42
8.1.40.0040.00417.53
8.1.30.0040.00417.45
8.1.20.0040.00417.42
8.1.10.0040.00417.53
8.1.00.0000.00817.42
8.0.300.0070.00019.91
8.0.290.0040.00416.63
8.0.280.0020.00518.38
8.0.270.0050.00317.10
8.0.260.0000.00716.75
8.0.250.0070.00016.84
8.0.240.0050.00316.84
8.0.230.0000.00716.88
8.0.220.0000.00716.79
8.0.210.0070.00016.82
8.0.200.0050.00316.96
8.0.190.0040.00416.87
8.0.180.0040.00416.90
8.0.170.0040.00416.93
8.0.160.0030.00316.90
8.0.150.0040.00416.73
8.0.140.0080.00416.81
8.0.130.0050.00013.28
8.0.120.0040.00416.83
8.0.110.0040.00317.00
8.0.100.0030.00316.88
8.0.90.0050.00316.69
8.0.80.0110.00716.87
8.0.70.0040.00416.96
8.0.60.0040.00416.85
8.0.50.0000.00716.69
8.0.30.0130.00716.98
8.0.20.0090.00917.10
8.0.10.0040.00416.86
8.0.00.0080.01416.68
7.4.330.0050.00012.85
7.4.320.0000.00716.42
7.4.300.0030.00316.52
7.4.290.0070.00016.45
7.4.280.0000.00816.50
7.4.270.0000.00716.39
7.4.260.0050.00013.15
7.4.250.0000.00816.52
7.4.240.0000.00716.55
7.4.230.0000.00716.62
7.4.220.0100.01616.53
7.4.210.0060.00916.50
7.4.200.0070.00016.33
7.4.190.0030.00316.49
7.4.160.0170.00616.60
7.4.150.0150.00316.38
7.4.140.0120.00916.33
7.4.130.0120.00916.39
7.4.120.0080.00816.44
7.4.110.0070.01016.58
7.4.100.0090.00916.54
7.4.90.0140.00716.67
7.4.80.0070.01616.46
7.4.70.0030.01416.34
7.4.60.0140.00316.51
7.4.50.0000.00816.38
7.4.40.0000.01416.39
7.4.30.0090.00616.62
7.4.10.0120.00315.14
7.4.00.0060.01114.83
7.3.330.0000.00513.16
7.3.320.0070.00013.26
7.3.310.0030.00316.20
7.3.300.0040.00416.34
7.3.290.0140.00016.29
7.3.280.0080.00816.29
7.3.270.0120.00416.38
7.3.260.0100.00716.49
7.3.250.0160.00616.55
7.3.240.0120.00916.30
7.3.230.0070.01016.38
7.3.210.0000.01616.30
7.3.200.0140.01119.39
7.3.190.0050.01616.38
7.3.180.0130.00316.43
7.3.170.0110.00816.33
7.3.160.0120.01016.60
7.3.130.0090.00914.97
7.3.120.0040.01114.84
7.3.110.0070.00914.71
7.3.100.0060.00714.87
7.3.90.0040.00914.81
7.3.80.0070.00514.75
7.3.70.0050.01014.84
7.3.60.0040.01214.54
7.3.50.0060.00714.57
7.3.40.0080.00614.82
7.3.30.0050.01014.61
7.3.20.0070.00416.61
7.3.10.0050.01016.55
7.3.00.0060.00516.49
7.2.330.0120.00916.49
7.2.320.0030.01316.47
7.2.310.0030.01416.61
7.2.300.0100.00716.29
7.2.290.0090.00916.47
7.2.260.0090.00914.95
7.2.250.0080.00514.77
7.2.240.0020.01514.53
7.2.230.0060.00815.03
7.2.220.0060.00814.94
7.2.210.0010.00914.85
7.2.200.0000.01514.86
7.2.190.0100.00714.71
7.2.180.0040.01014.79
7.2.170.0060.00714.89
7.2.160.0110.00014.87
7.2.150.0070.00716.54
7.2.140.0060.00916.77
7.2.130.0060.00916.70
7.2.120.0000.01216.47
7.2.110.0060.01216.79
7.2.100.0060.01016.83
7.2.90.0120.00616.64
7.2.80.0100.01016.77
7.2.70.0000.01416.88
7.2.60.0060.00616.79
7.2.50.0000.01716.87
7.2.40.0000.01716.62
7.2.30.0030.01016.91
7.2.20.0100.00316.79
7.2.10.0060.01216.50
7.2.00.0050.01117.87
7.1.330.0080.00815.60
7.1.320.0050.00715.60
7.1.310.0080.00515.74
7.1.300.0120.00215.62
7.1.290.0080.00315.53
7.1.280.0020.01415.47
7.1.270.0030.00815.56
7.1.260.0010.01015.71
7.1.250.0000.01515.36
7.1.240.0030.01015.59
7.1.230.0080.00015.70
7.1.220.0030.01015.73
7.1.210.0090.00615.62
7.1.200.0090.01115.67
7.1.190.0100.00315.36
7.1.180.0080.00415.78
7.1.170.0060.00315.62
7.1.160.0090.00615.36
7.1.150.0030.00615.74
7.1.140.0030.01015.42
7.1.130.0000.01515.66
7.1.120.0040.00715.60
7.1.110.0090.00015.63
7.1.100.0010.01116.86
7.1.90.0000.01215.36
7.1.80.0080.00815.57
7.1.70.0050.00616.22
7.1.60.0070.01117.58
7.1.50.0060.01316.24
7.1.40.0000.01615.36
7.1.30.0070.00715.63
7.1.20.0030.00615.74
7.1.10.0040.00415.59
7.1.00.0030.04519.04
7.0.330.0080.00015.32
7.0.320.0060.00615.45
7.0.310.0030.01415.29
7.0.300.0100.00315.28
7.0.290.0080.00515.27
7.0.280.0040.00715.20
7.0.270.0080.00315.27
7.0.260.0080.00014.98
7.0.250.0000.01115.03
7.0.240.0000.01015.17
7.0.230.0060.00615.27
7.0.220.0070.00714.98
7.0.210.0030.00915.20
7.0.200.0090.00914.70
7.0.190.0030.01315.35
7.0.180.0030.00615.17
7.0.170.0040.01115.25
7.0.160.0090.00315.04
7.0.150.0100.00015.38
7.0.140.0030.04018.63
7.0.130.0000.00715.25
7.0.120.0020.03718.70
7.0.110.0040.01115.16
7.0.100.0090.00315.27
7.0.90.0110.00015.23
7.0.80.0030.00915.00
7.0.70.0070.00715.09
7.0.60.0060.03317.64
7.0.50.0070.04316.60
7.0.40.0080.02316.61
7.0.30.0130.04416.70
7.0.20.0150.02816.72
7.0.10.0080.04316.67
7.0.00.0100.02016.77
5.6.400.0030.00914.39
5.6.390.0000.01314.22
5.6.380.0080.00314.00
5.6.370.0090.00914.07
5.6.360.0090.00614.04
5.6.350.0040.01113.73
5.6.340.0070.00414.18
5.6.330.0000.01414.35
5.6.320.0030.01013.87
5.6.310.0090.00014.15
5.6.300.0120.00014.23
5.6.290.0090.00413.89
5.6.280.0050.03917.48
5.6.270.0030.01314.12
5.6.260.0060.00913.72
5.6.250.0000.00914.00
5.6.240.0000.01213.98
5.6.230.0030.01214.07
5.6.220.0000.01513.92
5.6.210.0020.04417.33
5.6.200.0120.03516.19
5.6.190.0050.05017.40
5.6.180.0220.04417.23
5.6.170.0140.04517.21
5.6.160.0050.04317.34
5.6.150.0080.02515.99
5.6.140.0050.03016.11
5.6.130.0060.02516.08
5.6.120.0100.02517.58
5.6.110.0030.02517.49
5.6.100.0090.04217.57
5.6.90.0050.03717.44
5.6.80.0090.02717.25
5.6.70.0030.01014.22
5.6.60.0070.00714.07
5.6.50.0060.00614.05
5.6.40.0040.01213.93
5.6.30.0030.01013.92
5.6.20.0060.00914.07
5.6.10.0060.00613.92
5.6.00.0070.00714.18
5.5.380.0060.00614.08
5.5.370.0060.00614.07
5.5.360.0110.00413.74
5.5.350.0050.04617.24
5.5.340.0090.04316.15
5.5.330.0100.04317.16
5.5.320.0110.02617.24
5.5.310.0160.02517.13
5.5.300.0100.03715.93
5.5.290.0040.03315.94
5.5.280.0030.05017.32
5.5.270.0030.03617.48
5.5.260.0070.02617.29
5.5.250.0070.02617.16
5.5.240.0050.04617.00
5.5.230.0030.00513.66
5.5.220.0030.00613.96
5.5.210.0090.00314.04
5.5.200.0130.00314.03
5.5.190.0040.01113.79
5.5.180.0040.00713.81
5.5.170.0030.00913.99
5.5.160.0030.00614.06
5.5.150.0080.00413.99
5.5.140.0060.00313.80
5.5.130.0030.01113.92
5.5.120.0030.01413.89
5.5.110.0000.01114.02
5.5.100.0030.01213.91
5.5.90.0130.00313.82
5.5.80.0040.01113.82
5.5.70.0060.01214.18
5.5.60.0090.00613.95
5.5.50.0030.00813.98
5.5.40.0130.00013.92
5.5.30.0000.00814.26
5.5.20.0000.00913.79
5.5.10.0000.01613.53
5.5.00.0100.00713.78
5.4.450.0070.02515.40
5.4.440.0050.02815.15
5.4.430.0050.02314.87
5.4.420.0080.03915.10
5.4.410.0090.03815.05
5.4.400.0030.04115.14
5.4.390.0050.03714.97
5.4.380.0020.02914.98
5.4.370.0040.02415.13
5.4.360.0070.02314.92
5.4.350.0030.02714.98
5.4.340.0020.03415.03
5.4.330.0000.01010.71
5.4.320.0000.03714.78
5.4.310.0030.04314.88
5.4.300.0000.02915.07
5.4.290.0050.04314.77
5.4.280.0030.03714.84
5.4.270.0050.03314.79
5.4.260.0020.03915.00
5.4.250.0050.03314.86
5.4.240.0020.03414.92
5.4.230.0070.02714.70
5.4.220.0100.02514.87
5.4.210.0050.02715.21
5.4.200.0070.04014.91
5.4.190.0080.03815.10
5.4.180.0000.03214.90
5.4.170.0070.03115.01
5.4.160.0070.02515.16
5.4.150.0030.03514.80
5.4.140.0050.02513.69
5.4.130.0110.03013.58
5.4.120.0070.02513.79
5.4.110.0060.02813.59
5.4.100.0070.02313.76
5.4.90.0070.02313.61
5.4.80.0030.02113.66
5.4.70.0010.02413.75
5.4.60.0020.02713.72
5.4.50.0130.03413.78
5.4.40.0050.04013.57
5.4.30.0050.02513.53
5.4.20.0020.02613.66
5.4.10.0020.03613.67
5.4.00.0040.04213.51
5.3.290.0070.02212.48
5.3.280.0030.04512.42
5.3.270.0030.03912.59
5.3.260.0100.03812.37
5.3.250.0050.04012.40
5.3.240.0120.03512.31
5.3.230.0040.04412.53
5.3.220.0020.03212.53
5.3.210.0020.04112.56
5.3.200.0070.04012.40
5.3.190.0070.02312.40
5.3.180.0070.02012.51
5.3.170.0050.02412.55
5.3.160.0090.01912.65
5.3.150.0020.03512.58
5.3.140.0030.04012.66
5.3.130.0030.03612.64
5.3.120.0120.03712.55
5.3.110.0000.02812.49
5.3.100.0050.04212.34
5.3.90.0030.04112.30
5.3.80.0090.03312.11
5.3.70.0090.03712.16
5.3.60.0020.03812.31
5.3.50.0070.03212.17
5.3.40.0030.04312.21
5.3.30.0080.01812.06
5.3.20.0080.03712.04
5.3.10.0050.03711.94
5.3.00.0080.03811.83
5.2.170.0030.06711.10
5.2.160.0070.05311.14
5.2.150.0030.06311.30
5.2.140.0030.03011.18
5.2.130.0100.04011.15
5.2.120.0070.06010.99
5.2.110.0070.05711.20
5.2.100.0030.05311.15
5.2.90.0070.04311.06
5.2.80.0030.03311.10
5.2.70.0030.03311.11
5.2.60.0030.04710.96
5.2.50.0100.06011.02
5.2.40.0000.06311.04
5.2.30.0100.05710.96
5.2.20.0000.05310.88
5.2.10.0170.02710.86
5.2.00.0070.05010.88
5.1.60.0070.0609.94
5.1.50.0030.04310.05
5.1.40.0070.04310.04
5.1.30.0130.04710.35
5.1.20.0070.05310.49
5.1.10.0030.03310.11
5.1.00.0030.05710.13
5.0.50.0030.0278.56
5.0.40.0070.0408.36
5.0.30.0000.0538.37
5.0.20.0000.0408.21
5.0.10.0070.0408.15
5.0.00.0030.0678.15
4.4.90.0000.0408.05
4.4.80.0100.0278.05
4.4.70.0030.0378.05
4.4.60.0070.0378.05
4.4.50.0030.0378.05
4.4.40.0030.0578.05
4.4.30.0100.0208.05
4.4.20.0030.0238.05
4.4.10.0000.0208.05
4.4.00.0030.0308.05
4.3.110.0030.0378.05
4.3.100.0030.0338.05
4.3.90.0030.0338.05
4.3.80.0100.0508.05
4.3.70.0000.0338.05
4.3.60.0030.0338.05
4.3.50.0030.0378.05
4.3.40.0000.0478.05
4.3.30.0000.0238.05
4.3.20.0000.0308.05
4.3.10.0000.0308.05
4.3.00.0000.0278.05

preferences:
51.58 ms | 401 KiB | 5 Q