3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Active assert and make it quiet assert_options(ASSERT_ACTIVE, 1); // Create a handler function function my_assert_handler($file, $line, $code, $desc = null) { echo "Assertion failed at $file:$line: $code"; if ($desc) { echo ": $desc"; } echo "\n"; } // Set up the callback assert_options(ASSERT_CALLBACK, 'phpinfo'); // Make an assertion that should fail assert('2 < 1'); assert('2 < 1', '<img src=1>');

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.01318.56
8.3.50.0090.00621.20
8.3.40.0120.00318.71
8.3.30.0110.00419.04
8.3.20.0070.00020.34
8.3.10.0080.00021.95
8.3.00.0050.00322.43
8.2.180.0120.00616.63
8.2.170.0110.00322.96
8.2.160.0120.00319.17
8.2.150.0080.00024.18
8.2.140.0120.00624.66
8.2.130.0120.00626.16
8.2.120.0000.00819.54
8.2.110.0090.00021.14
8.2.100.0050.00817.66
8.2.90.0030.00517.72
8.2.80.0030.00619.09
8.2.70.0080.00017.50
8.2.60.0000.00917.80
8.2.50.0030.00517.50
8.2.40.0040.00419.35
8.2.30.0000.01017.89
8.2.20.0000.00717.61
8.2.10.0040.00417.50
8.2.00.0040.00517.50
8.1.270.0060.00320.17
8.1.260.0070.00026.35
8.1.250.0000.00828.09
8.1.240.0090.00022.33
8.1.230.0000.01220.88
8.1.220.0040.00417.74
8.1.210.0070.00018.77
8.1.200.0030.00717.23
8.1.190.0000.00917.23
8.1.180.0040.00418.10
8.1.170.0040.00417.62
8.1.160.0040.00422.02
8.1.150.0040.00418.52
8.1.140.0040.00417.33
8.1.130.0070.00017.78
8.1.120.0040.00417.25
8.1.110.0030.00617.34
8.1.100.0040.00417.30
8.1.90.0040.00417.23
8.1.80.0040.00317.34
8.1.70.0000.00717.36
8.1.60.0030.00517.55
8.1.50.0000.00717.37
8.1.40.0000.00717.45
8.1.30.0080.00017.45
8.1.20.0040.00417.57
8.1.10.0060.00317.43
8.1.00.0030.00617.31
8.0.300.0040.00419.91
8.0.290.0040.00416.63
8.0.280.0030.00318.33
8.0.270.0030.00317.13
8.0.260.0040.00416.70
8.0.250.0040.00416.79
8.0.240.0050.00216.93
8.0.230.0030.00316.94
8.0.220.0000.00816.84
8.0.210.0030.00316.84
8.0.200.0000.00816.91
8.0.190.0030.00316.80
8.0.180.0030.00316.79
8.0.170.0040.00416.86
8.0.160.0000.00816.91
8.0.150.0050.00316.80
8.0.140.0080.00016.83
8.0.130.0060.00013.19
8.0.120.0050.00316.71
8.0.110.0040.00416.68
8.0.100.0000.00716.80
8.0.90.0040.00416.83
8.0.80.0140.00716.90
8.0.70.0040.00416.71
8.0.60.0040.00416.91
8.0.50.0000.00716.63
8.0.30.0130.00516.81
8.0.20.0080.01117.40
8.0.10.0030.00616.81
8.0.00.0090.00816.66
7.4.330.0050.00015.00
7.4.320.0030.00316.40
7.4.300.0060.00016.41
7.4.290.0030.00316.44
7.4.280.0060.00316.36
7.4.270.0070.00016.31
7.4.260.0000.00716.46
7.4.250.0000.00816.47
7.4.240.0020.00616.32
7.4.230.0000.00616.32
7.4.220.0030.01416.56
7.4.210.0060.00816.43
7.4.200.0070.00016.46
7.4.190.0000.00716.57
7.4.160.0130.00916.41
7.4.150.0030.01317.40
7.4.140.0050.01217.86
7.4.130.0110.01016.44
7.4.120.0100.01016.38
7.4.110.0100.01016.59
7.4.100.0070.01016.40
7.4.90.0160.00316.39
7.4.80.0120.01219.39
7.4.70.0110.00616.19
7.4.60.0030.01316.32
7.4.50.0030.00616.44
7.4.40.0080.00422.77
7.4.30.0150.00316.20
7.4.00.0060.00914.60
7.3.330.0030.00313.34
7.3.320.0050.00013.39
7.3.310.0000.00716.42
7.3.300.0000.00716.30
7.3.290.0100.00416.24
7.3.280.0070.00816.27
7.3.270.0100.00617.40
7.3.260.0100.00716.36
7.3.250.0070.00916.37
7.3.240.0090.01116.48
7.3.230.0080.00816.47
7.3.210.0100.00616.21
7.3.200.0030.01519.39
7.3.190.0030.01616.52
7.3.180.0060.00916.49
7.3.170.0080.01016.42
7.3.160.0060.00916.54
7.3.120.0040.00714.76
7.2.330.0120.00616.55
7.2.320.0060.01816.44
7.2.310.0130.01216.24
7.2.300.0000.01516.34
7.2.290.0120.00416.53
7.2.60.0040.01116.32
7.2.00.0030.01019.09
7.1.200.0030.01015.45
7.1.100.0040.00817.71
7.1.70.0050.00216.81
7.1.60.0040.01219.82
7.1.50.0000.01516.76
7.1.00.0030.03322.32
7.0.200.0070.00716.67
7.0.140.0000.07022.15
7.0.60.0100.05019.82
7.0.50.0070.06717.95
7.0.40.0030.04319.96
7.0.30.0230.04720.13
7.0.20.0370.06720.26
7.0.10.0100.08020.19
7.0.00.0030.09320.09
5.6.280.0070.06721.12
5.6.210.0130.05720.70
5.6.200.0030.07318.22
5.6.190.0030.06320.42
5.6.180.0300.07320.77
5.6.170.0370.05720.56
5.6.160.0000.04320.57
5.6.150.0000.08018.20
5.6.140.0030.05018.16
5.6.130.0030.05018.26
5.6.120.0070.09021.12
5.6.110.0170.07321.14
5.6.100.0100.08721.02
5.6.90.0030.08721.11
5.6.80.0130.07020.41
5.5.350.0030.04320.34
5.5.340.0100.03718.07
5.5.330.0130.07020.43
5.5.320.0330.06320.25
5.5.310.0270.06720.26
5.5.300.0100.07718.03
5.5.290.0070.08317.98
5.5.280.0070.08720.77
5.5.270.0230.03020.79
5.5.260.0000.04720.81
5.5.250.0030.05020.58
5.5.240.0300.07320.18
5.4.450.0600.06319.39
5.4.440.0670.06019.48
5.4.430.0070.05719.48
5.4.420.0500.06019.48
5.4.410.0600.06019.50
5.4.400.0700.06319.29
5.4.390.0700.06319.23
5.4.380.0430.07318.57
5.4.370.0170.05018.46
5.4.360.0170.07318.70
5.4.350.0090.05912.02
5.4.340.0070.04912.02
5.4.320.0050.04612.51
5.4.310.0060.04012.50
5.4.300.0100.03712.50
5.4.290.0080.03712.50
5.4.280.0080.03612.40
5.4.270.0060.04112.40
5.4.260.0050.03912.40
5.4.250.0130.05718.98
5.4.240.0130.04719.00
5.4.230.0130.05018.94
5.4.220.0100.05318.94
5.4.210.0130.06718.77
5.4.200.0100.05018.80
5.4.190.0130.04718.90
5.4.180.0070.07018.79
5.4.170.0130.04718.85
5.4.160.0130.06718.85
5.4.150.0100.05718.64
5.4.140.0070.05016.41
5.4.130.0070.05016.34
5.4.120.0030.05316.48
5.4.110.0000.07716.36
5.4.100.0100.05016.39
5.4.90.0130.04316.48
5.4.80.0100.04716.64
5.4.70.0000.07316.37
5.4.60.0170.05316.36
5.4.50.0070.05016.41
5.4.40.0070.06316.43
5.4.30.0030.05016.62
5.4.20.0030.05316.50
5.4.10.0130.04716.59
5.4.00.0030.05016.03
5.3.290.0050.04812.80
5.3.280.0030.05714.58
5.3.270.0100.05014.70
5.3.260.0070.05314.77
5.3.250.0030.05714.67
5.3.240.0170.04314.57
5.3.230.0100.04714.68
5.3.220.0100.04714.73
5.3.210.0130.07014.40
5.3.200.0130.06714.64
5.3.190.0130.04714.65
5.3.180.0100.07014.55
5.3.170.0170.04014.54
5.3.160.0070.05314.55
5.3.150.0130.04714.79
5.3.140.0100.05014.46
5.3.130.0070.08014.53
5.3.120.0070.06014.68
5.3.110.0070.05714.55
5.3.100.0030.06314.12
5.3.90.0100.04314.18
5.3.80.0030.05314.09
5.3.70.0130.04314.11
5.3.60.0030.05014.08
5.3.50.0070.04713.97
5.3.40.0130.06014.04
5.3.30.0100.06014.09
5.3.20.0100.04713.78
5.3.10.0070.04713.87
5.3.00.0100.04313.82
5.2.170.0000.04711.15
5.2.160.0130.03011.23
5.2.150.0030.04311.05
5.2.140.0070.04011.27
5.2.130.0000.04311.09
5.2.120.0100.03311.09
5.2.110.0030.05011.18
5.2.100.0130.04011.28
5.2.90.0100.05311.09
5.2.80.0170.04711.17
5.2.70.0000.05011.17
5.2.60.0070.05011.12
5.2.50.0070.06011.19
5.2.40.0100.03310.97
5.2.30.0030.04011.16
5.2.20.0070.03710.96
5.2.10.0000.04010.93
5.2.00.0130.03010.64
5.1.60.0030.03310.08
5.1.50.0070.03010.07
5.1.40.0000.04010.18
5.1.30.0030.05310.34
5.1.20.0030.04010.52
5.1.10.0000.0539.99
5.1.00.0100.03010.27
5.0.50.0070.0278.79
5.0.40.0030.0408.33
5.0.30.0100.0338.38
5.0.20.0070.0238.26
5.0.10.0000.0308.37
5.0.00.0000.0438.16
4.4.90.0100.0206.99
4.4.80.0070.0276.99
4.4.70.0000.0306.99
4.4.60.0000.0236.99
4.4.50.0070.0176.99
4.4.40.0070.0276.99
4.4.30.0030.0206.99
4.4.20.0030.0206.99
4.4.10.0100.0136.99
4.4.00.0100.0276.99
4.3.110.0000.0336.99
4.3.100.0000.0236.99
4.3.90.0030.0206.99
4.3.80.0100.0276.99
4.3.70.0030.0176.99
4.3.60.0070.0176.99
4.3.50.0000.0236.99
4.3.40.0070.0306.99
4.3.30.0000.0236.99
4.3.20.0030.0206.99
4.3.10.0070.0176.99
4.3.00.0130.0208.12

preferences:
45.59 ms | 400 KiB | 5 Q