3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo 'Initial settings:'.PHP_EOL; echo 'zend.assertions: '.ini_get('zend.assertions').PHP_EOL; echo 'assert.active: '.ini_get('assert.active').PHP_EOL; ini_set('zend.assertions', 0); assert_options(ASSERT_ACTIVE, 0); echo 'After altering settings:'.PHP_EOL; echo 'zend.assertions: '.ini_get('zend.assertions').PHP_EOL; echo 'assert.active: '.ini_get('assert.active').PHP_EOL; $assert = false; assert($assert = true); if($assert) echo 'Code in assert() was evaluated'.PHP_EOL; else echo 'Code in assert() was NOT evaluated'.PHP_EOL;
based on 0VkPp

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.0.30.0090.01116.87
8.0.20.0100.01117.40
8.0.00.0130.01016.73
7.4.160.0140.00616.58
7.4.150.0060.01417.40
7.4.140.0090.00817.86
7.4.130.0100.01016.49
7.4.120.0080.01416.47
7.4.110.0070.01016.59
7.4.100.0030.01416.30
7.4.90.0100.00716.45
7.4.80.0140.00319.39
7.4.70.0070.01016.59
7.4.60.0080.01116.55
7.4.50.0060.00916.53
7.4.40.0080.00816.68
7.4.30.0160.00616.59
7.4.10.0070.00714.97
7.4.00.0110.00514.98
7.3.280.0090.00916.31
7.3.270.0030.01417.40
7.3.260.0140.01116.28
7.3.250.0120.00916.51
7.3.240.0120.00816.47
7.3.230.0080.01216.53
7.3.210.0060.01216.36
7.3.200.0070.01016.54
7.3.190.0140.00316.39
7.3.180.0060.00916.32
7.3.170.0100.01116.15
7.3.160.0070.01016.41
7.3.130.0130.00314.91
7.3.120.0080.00815.04
7.3.110.0050.01314.62
7.3.100.0070.00414.83
7.3.90.0070.00514.87
7.3.80.0060.00514.78
7.3.70.0080.00514.70
7.3.60.0110.00414.76
7.3.50.0100.00614.91
7.3.40.0050.01014.73
7.3.30.0080.00514.89
7.3.20.0110.00516.62
7.3.10.0080.00616.38
7.3.00.0060.00616.58
7.2.330.0100.01016.66
7.2.320.0110.00716.54
7.2.310.0080.00816.63
7.2.300.0120.01216.38
7.2.290.0100.01316.55
7.2.260.0070.01014.88
7.2.250.0070.00715.25
7.2.240.0050.01115.05
7.2.230.0090.00714.96
7.2.220.0080.00615.05
7.2.210.0070.00714.84
7.2.200.0060.00515.03
7.2.190.0070.00614.84
7.2.180.0050.00715.00
7.2.170.0050.00514.92
7.2.160.0020.00814.80
7.2.150.0050.00616.74
7.2.140.0080.00516.64
7.2.130.0110.00516.79
7.2.120.0060.00816.71
7.2.110.0070.00716.74
7.2.100.0090.00616.74
7.2.90.0070.00816.76
7.2.80.0100.00616.87
7.2.70.0090.00816.80
7.2.60.0120.00816.78
7.2.50.0040.00916.68
7.2.40.0130.00616.85
7.2.30.0030.01016.57
7.2.20.0040.01016.82
7.2.10.0040.00816.69
7.2.00.0050.00716.96
7.1.330.0080.00915.94
7.1.320.0030.01315.89
7.1.310.0030.01015.79
7.1.300.0090.00315.82
7.1.290.0040.00915.61
7.1.280.0050.01015.63
7.1.270.0050.00715.63
7.1.260.0060.00815.80
7.1.250.0120.00315.73
7.1.240.0040.00715.49
7.1.230.0100.00315.94
7.1.220.0000.01515.70
7.1.210.0040.00915.43
7.1.200.0050.00915.77
7.1.190.0060.00615.56
7.1.180.0090.00615.90
7.1.170.0030.00715.76
7.1.160.0000.01415.42
7.1.150.0030.00915.71
7.1.140.0080.00615.76
7.1.130.0060.00615.98
7.1.120.0030.00915.75
7.1.110.0000.01115.66
7.1.100.0050.00717.03
7.1.90.0000.01215.87
7.1.80.0070.00315.89
7.1.70.0020.00716.47
7.1.60.0040.00716.37
7.1.50.0070.01016.25
7.1.40.0000.01015.61
7.1.30.0040.00815.54
7.1.20.0030.01315.77
7.1.10.0030.01315.73
7.1.00.0550.03418.34
7.0.330.0060.00915.13
7.0.320.0000.01715.28
7.0.310.0030.00615.17
7.0.300.0040.01115.29
7.0.290.0070.00415.48
7.0.280.0000.01315.49
7.0.270.0000.01315.05
7.0.260.0070.00715.23
7.0.250.0000.01215.17
7.0.240.0000.01015.59
7.0.230.0090.00015.27
7.0.220.0040.00915.34
7.0.210.0080.00615.49
7.0.200.0070.00816.10
7.0.190.0100.00315.11
7.0.180.0040.00715.57
7.0.170.0030.00615.40
7.0.160.0030.01015.11
7.0.150.0030.01015.44
7.0.140.0580.03017.89
7.0.130.0520.03617.74
7.0.120.0750.03217.87
7.0.110.1030.03817.70
7.0.100.0570.03717.83
7.0.90.0580.03317.68
7.0.80.0530.03117.92
7.0.70.0430.03017.83
7.0.60.0500.03017.73
7.0.50.0430.04017.71
7.0.40.0520.03216.98
7.0.30.0650.04116.92
7.0.20.0430.03016.83
7.0.10.0420.03116.82
7.0.00.0450.03216.75
5.6.400.0040.00714.66
5.6.390.0080.00314.28
5.6.380.0100.00714.38
5.6.370.0030.00614.22
5.6.360.0150.00014.26
5.6.350.0040.00814.50
5.6.340.0070.01014.48
5.6.330.0070.00314.38
5.6.320.0000.01614.36
5.6.310.0070.00713.99
5.6.300.0060.00614.50
5.6.290.0150.03717.76
5.6.280.0080.03117.65
5.6.270.0080.04717.68
5.6.260.0100.03017.63
5.6.250.0150.03517.64
5.6.240.0130.03017.64
5.6.230.0120.03517.66
5.6.220.0090.03017.53
5.6.210.0080.03517.60
5.6.200.0070.03617.66
5.6.190.0080.03717.67
5.6.180.0080.03117.72
5.6.170.0070.03217.66
5.6.160.0100.02917.63
5.6.150.0120.03417.54
5.6.140.0080.03317.59
5.6.130.0120.03217.48
5.6.120.0070.03517.55
5.6.110.0080.03117.69
5.6.100.0100.03317.63
5.6.90.0120.02717.65
5.6.80.0100.02817.41
5.6.70.0130.02817.21
5.6.60.0090.02917.21
5.6.50.0100.03017.27
5.6.40.0070.03217.24
5.6.30.0090.03017.27
5.6.20.0050.03117.36
5.6.10.0070.03317.07
5.6.00.0110.02817.20