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', 'Two is less than one');

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.0110.00418.31
8.3.50.0100.00521.20
8.3.40.0000.01418.84
8.3.30.0070.00718.98
8.3.20.0000.00720.22
8.3.10.0000.00821.95
8.3.00.0040.00420.77
8.2.180.0110.01116.63
8.2.170.0110.01122.96
8.2.160.0060.01018.79
8.2.150.0000.00824.18
8.2.140.0130.00324.66
8.2.130.0000.00826.16
8.2.120.0040.00419.44
8.2.110.0030.00720.35
8.2.100.0120.00017.72
8.2.90.0050.00319.16
8.2.80.0040.00417.97
8.2.70.0030.00517.50
8.2.60.0000.00817.68
8.2.50.0000.00918.07
8.2.40.0030.00518.09
8.2.30.0000.00918.06
8.2.20.0050.00317.48
8.2.10.0040.00417.51
8.2.00.0060.00317.64
8.1.280.0110.00425.92
8.1.270.0040.00420.16
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0090.00319.21
8.1.230.0070.00417.42
8.1.220.0000.00717.74
8.1.210.0060.00318.77
8.1.200.0060.00317.13
8.1.190.0050.00317.41
8.1.180.0090.00018.54
8.1.170.0090.00018.50
8.1.160.0000.00822.15
8.1.150.0040.00418.41
8.1.140.0040.00417.30
8.1.130.0030.00517.78
8.1.120.0000.00717.34
8.1.110.0070.00017.23
8.1.100.0040.00417.36
8.1.90.0020.00517.39
8.1.80.0030.00317.37
8.1.70.0000.00717.33
8.1.60.0040.00417.48
8.1.50.0040.00417.38
8.1.40.0040.00417.47
8.1.30.0000.00817.55
8.1.20.0000.00817.44
8.1.10.0070.00017.30
8.1.00.0040.00417.26
8.0.300.0030.00618.77
8.0.290.0070.00016.75
8.0.280.0070.00018.34
8.0.270.0070.00017.05
8.0.260.0030.00716.64
8.0.250.0040.00416.91
8.0.240.0000.00716.92
8.0.230.0000.00716.81
8.0.220.0000.00816.85
8.0.210.0000.00716.85
8.0.200.0060.00016.94
8.0.190.0060.00316.90
8.0.180.0030.00316.84
8.0.170.0080.00016.76
8.0.160.0040.00416.74
8.0.150.0070.00016.80
8.0.140.0030.00316.78
8.0.130.0000.00613.34
8.0.120.0020.00516.79
8.0.110.0040.00416.88
8.0.100.0000.00716.66
8.0.90.0080.00016.83
8.0.80.0130.01016.77
8.0.70.0000.00716.86
8.0.60.0040.00416.88
8.0.50.0070.00016.79
8.0.30.0080.01316.91
8.0.20.0140.00417.40
8.0.10.0080.00017.02
8.0.00.0050.01316.62
7.4.330.0050.00015.00
7.4.320.0040.00416.40
7.4.300.0030.00316.49
7.4.290.0030.00316.49
7.4.280.0000.00916.36
7.4.270.0030.00316.32
7.4.260.0030.00716.45
7.4.250.0040.00416.28
7.4.240.0020.00516.44
7.4.230.0000.00716.59
7.4.220.0030.01316.48
7.4.210.0100.00416.43
7.4.200.0000.00716.55
7.4.190.0050.00216.45
7.4.160.0060.01016.26
7.4.150.0070.01817.40
7.4.140.0100.00817.86
7.4.130.0110.00616.46
7.4.120.0120.00516.52
7.4.110.0060.01016.40
7.4.100.0090.01316.48
7.4.90.0120.00616.26
7.4.80.0110.01119.39
7.4.70.0090.00916.41
7.4.60.0030.01316.59
7.4.50.0000.00816.36
7.4.40.0070.01022.77
7.4.30.0100.00716.35
7.4.00.0080.00814.68
7.3.330.0030.00313.18
7.3.320.0000.00513.11
7.3.310.0040.00416.28
7.3.300.0000.00716.19
7.3.290.0080.01116.29
7.3.280.0070.01016.31
7.3.270.0050.01317.40
7.3.260.0090.00916.35
7.3.250.0060.01116.27
7.3.240.0040.01416.23
7.3.230.0150.00316.39
7.3.210.0100.00716.42
7.3.200.0090.01219.39
7.3.190.0150.00616.34
7.3.180.0080.00816.33
7.3.170.0040.01216.45
7.3.160.0100.00616.39
7.3.120.0060.00614.83
7.3.10.0090.00316.55
7.3.00.0100.00716.62
7.2.330.0060.01216.54
7.2.320.0130.00916.56
7.2.310.0090.00916.59
7.2.300.0060.01016.36
7.2.290.0070.01016.20
7.2.130.0030.01416.84
7.2.120.0060.01016.79
7.2.110.0040.01116.34
7.2.100.0080.00416.71
7.2.90.0090.00616.71
7.2.80.0060.00916.59
7.2.70.0060.01016.67
7.2.60.0080.00616.82
7.2.50.0070.00716.52
7.2.40.0030.00916.50
7.2.30.0030.00916.58
7.2.20.0060.00916.91
7.2.10.0070.00716.50
7.2.00.0070.00817.90
7.1.250.0060.00615.81
7.1.200.0120.00915.38
7.1.100.0000.01417.75
7.1.70.0030.00517.19
7.1.60.0100.01419.82
7.1.50.0810.01416.78
7.1.00.0030.05022.31
7.0.200.0040.00416.14
7.0.140.0030.07321.95
7.0.100.0300.05020.06
7.0.90.0270.08020.14
7.0.80.0100.04319.93
7.0.70.0000.04719.94
7.0.60.0130.07719.97
7.0.50.0170.07720.29
7.0.40.0070.08320.11
7.0.30.0170.07020.11
7.0.20.0100.08020.05
7.0.10.0070.08320.08
7.0.00.0030.08020.07
5.6.280.0170.06020.91
5.6.250.0070.08020.72
5.6.240.0100.07720.76
5.6.230.0070.08720.63
5.6.220.0000.07720.48
5.6.210.0130.07320.66
5.6.200.0100.05021.14
5.6.190.0070.08321.14
5.6.180.0130.04021.11
5.6.170.0030.09021.11
5.6.160.0070.08720.96
5.6.150.0130.06721.03
5.6.140.0130.07721.07
5.6.130.0000.08721.05
5.6.120.0100.07721.05
5.6.110.0170.07721.09
5.6.100.0200.07021.11
5.6.90.0070.08321.00
5.6.80.0030.08320.34
5.6.70.0230.06320.43
5.6.60.0200.06720.46
5.6.50.0070.08020.43
5.6.40.0030.08720.40
5.6.30.0070.04720.40
5.6.20.0070.07720.53
5.6.10.0070.07020.28
5.6.00.0100.07720.31
5.5.380.0070.07320.46
5.5.370.0070.07320.40
5.5.360.0100.07720.41
5.5.350.0070.04720.45
5.5.340.0100.04720.89
5.5.330.0030.08320.84
5.5.320.0100.08320.78
5.5.310.0100.05020.89
5.5.300.0100.07320.80
5.5.290.0030.08720.91
5.5.280.0170.07320.75
5.5.270.0030.08320.80
5.5.260.0100.08020.86
5.5.250.0030.08320.62
5.5.240.0100.07020.31
5.5.230.0070.07320.26
5.5.220.0100.04720.25
5.5.210.0030.08320.21
5.5.200.0030.08720.12
5.5.190.0070.04320.22
5.5.180.0200.06320.16
5.5.160.0100.07320.21
5.5.150.0100.06320.19
5.5.140.0070.08020.21
5.5.130.0130.06020.18
5.5.120.0000.06720.27
5.5.110.0070.06320.22
5.5.100.0070.08020.02
5.5.90.0100.07020.07
5.5.80.0100.08020.07
5.5.70.0070.07320.04
5.5.60.0100.08020.03
5.5.50.0130.04020.07
5.5.40.0000.08320.05
5.5.30.0070.05020.06
5.5.20.0030.08020.12
5.5.10.0070.08320.00
5.5.00.0100.07319.96
5.4.450.0030.08719.57
5.4.440.0000.08719.46
5.4.430.0200.07319.45
5.4.420.0000.04319.46
5.4.410.0100.04319.33
5.4.400.0070.07719.17
5.4.390.0070.07019.05
5.4.380.0130.07719.04
5.4.370.0070.08018.91
5.4.360.0070.07719.13
5.4.350.0070.07319.13
5.4.340.0130.07719.17
5.4.320.0070.07718.95
5.4.310.0030.06718.95
5.4.300.0000.05018.88
5.4.290.0030.07319.18
5.4.280.0070.07719.03
5.4.270.0130.06719.23
5.4.260.0070.06319.03
5.4.250.0100.06319.17
5.4.240.0130.06319.04
5.4.230.0030.08019.11
5.4.220.0100.04319.16
5.4.210.0100.06019.04
5.4.200.0130.04719.04
5.4.190.0030.08019.02
5.4.180.0100.06318.87
5.4.170.0000.08018.89
5.4.160.0000.06718.93
5.4.150.0070.08319.22
5.4.140.0100.07716.30
5.4.130.0030.03716.19
5.4.120.0070.03316.47
5.4.110.0000.07716.34
5.4.100.0100.04316.43
5.4.90.0070.06716.50
5.4.80.0070.07016.50
5.4.70.0130.03716.48
5.4.60.0070.06016.41
5.4.50.0070.08016.42
5.4.40.0130.06016.32
5.4.30.0030.07016.33
5.4.20.0100.07016.24
5.4.10.0030.07716.40
5.4.00.0070.07015.91
5.3.290.0070.06714.72
5.3.280.0130.07714.52
5.3.270.0170.06314.60
5.3.260.0070.06314.54
5.3.250.0130.06714.68
5.3.240.0130.06014.59
5.3.230.0070.06714.67
5.3.220.0070.06714.54
5.3.210.0100.07314.59
5.3.200.0170.06714.71
5.3.190.0030.07314.63
5.3.180.0030.04314.63
5.3.170.0070.08014.59
5.3.160.0070.07314.68
5.3.150.0100.06714.60
5.3.140.0030.06014.54
5.3.130.0070.06714.48
5.3.120.0030.08014.60
5.3.110.0030.08014.53
5.3.100.0070.06314.11
5.3.90.0000.04713.95
5.3.80.0070.06713.94
5.3.70.0100.07014.05
5.3.60.0030.07714.02
5.3.50.0100.05714.07
5.3.40.0100.07013.94
5.3.30.0030.07313.82
5.3.20.0070.07013.70
5.3.10.0070.07013.64
5.3.00.0130.07013.78
5.2.170.0030.06312.14
5.2.160.0100.05312.14
5.2.150.0000.03712.14
5.2.140.0000.04012.14
5.2.130.0030.05712.14
5.2.120.0030.06312.14
5.2.110.0000.06312.14
5.2.100.0030.06012.14
5.2.90.0000.06312.14
5.2.80.0000.06712.14
5.2.70.0030.06012.14
5.2.60.0130.05312.14
5.2.50.0070.05712.14
5.2.40.0030.03712.14
5.2.30.0070.06012.14
5.2.20.0030.06312.14
5.2.10.0100.05312.14
5.2.00.0000.05712.14
5.1.60.0100.04312.14
5.1.50.0100.04312.14
5.1.40.0030.04312.14
5.1.30.0070.02712.14
5.1.20.0070.05312.14
5.1.10.0130.04712.14
5.1.00.0200.04712.14
5.0.50.0070.04012.14
5.0.40.0100.02712.14
5.0.30.0070.05712.14
5.0.20.0030.04312.14
5.0.10.0030.04312.14
5.0.00.0000.05012.14
4.4.90.0000.02712.14
4.4.80.0070.03012.14
4.4.70.0000.03712.14
4.4.60.0000.02712.14
4.4.50.0000.03712.14
4.4.40.0030.04312.14
4.4.30.0030.03712.14
4.4.20.0000.03712.14
4.4.10.0070.02712.14
4.4.00.0030.05712.14
4.3.110.0000.03712.14
4.3.100.0000.03712.14
4.3.90.0030.03312.14
4.3.80.0000.05312.14
4.3.70.0030.03312.14
4.3.60.0070.03012.14
4.3.50.0070.02712.14
4.3.40.0000.03012.14
4.3.30.0000.03712.14
4.3.20.0000.03312.14
4.3.10.0030.04012.14
4.3.00.0100.02712.14

preferences:
40.52 ms | 401 KiB | 5 Q