3v4l.org

run code in 300+ PHP versions simultaneously
<?php $vars = [ 'TRUE' => TRUE, 'FALSE' => FALSE, '1' => 1, '0' => 0, '-1' => -1, '"1"' => "1", '"0"' => "0", '"-1"' => "-1", 'NULL' => NULL, 'array()' => array(), '"php"' => "php", '""' => "", ]; foreach ($vars as $label => $var) { $result = (!$var === empty($var)) ? 'TRUE' : 'FALSE'; echo sprintf("%s: %s\n", $label, $result); }

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.4.20.0100.00720.47
8.4.10.0060.00317.71
8.3.150.0140.00419.06
8.3.140.0120.00320.55
8.3.130.0060.00318.39
8.3.120.0080.00018.91
8.3.110.0110.00020.94
8.3.100.0060.00324.06
8.3.90.0050.00326.77
8.3.80.0050.00516.25
8.3.70.0090.00616.63
8.3.60.0130.00618.18
8.3.50.0150.00819.08
8.3.40.0150.00018.84
8.3.30.0070.00718.67
8.3.20.0080.00020.31
8.3.10.0040.00423.65
8.3.00.0040.00419.66
8.2.260.0110.00416.24
8.2.250.0050.00316.73
8.2.240.0090.00018.84
8.2.230.0070.00022.58
8.2.220.0060.00337.54
8.2.210.0020.00526.77
8.2.200.0040.00416.75
8.2.190.0110.00716.58
8.2.180.0140.00718.05
8.2.170.0140.00322.96
8.2.160.0060.00919.08
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00019.63
8.2.110.0040.00420.35
8.2.100.0080.00417.91
8.2.90.0040.00417.75
8.2.80.0000.00818.82
8.2.70.0000.00817.63
8.2.60.0040.00417.63
8.2.50.0040.00417.93
8.2.40.0000.00819.47
8.2.30.0000.00819.13
8.2.20.0040.00418.12
8.2.10.0040.00418.18
8.2.00.0060.00318.31
8.1.310.0070.01016.79
8.1.300.0060.01218.29
8.1.290.0060.00330.84
8.1.280.0180.00325.92
8.1.270.0040.00420.32
8.1.260.0040.00426.35
8.1.250.0020.00528.09
8.1.240.0030.00622.05
8.1.230.0000.01122.16
8.1.220.0030.00617.78
8.1.210.0050.00318.77
8.1.200.0040.00417.36
8.1.190.0050.00317.25
8.1.180.0100.00018.10
8.1.170.0040.00417.62
8.1.160.0030.00518.88
8.1.150.0070.00020.28
8.1.140.0040.00417.76
8.1.130.0070.00019.02
8.1.120.0030.00317.46
8.1.110.0040.00417.34
8.1.100.0040.00417.34
8.1.90.0040.00417.35
8.1.80.0040.00417.45
8.1.70.0040.00417.48
8.1.60.0000.00917.58
8.1.50.0080.00017.38
8.1.40.0000.00717.47
8.1.30.0040.00417.65
8.1.20.0040.00417.65
8.1.10.0000.00817.40
8.1.00.0050.00317.41
8.0.300.0070.00418.77
8.0.290.0030.00516.63
8.0.280.0070.00018.47
8.0.270.0040.00418.66
8.0.260.0030.00316.82
8.0.250.0040.00316.83
8.0.240.0040.00416.82
8.0.230.0070.00016.97
8.0.220.0000.00716.87
8.0.210.0040.00416.80
8.0.200.0060.00016.84
8.0.190.0040.00416.92
8.0.180.0000.00716.97
8.0.170.0060.00316.90
8.0.160.0040.00416.99
8.0.150.0000.00816.82
8.0.140.0000.00816.74
8.0.130.0030.00313.34
8.0.120.0070.00016.89
8.0.110.0000.00716.67
8.0.100.0000.00716.83
8.0.90.0030.00316.79
8.0.80.0140.00716.83
8.0.70.0040.00416.79
8.0.60.0060.00316.90
8.0.50.0040.00416.77
8.0.30.0090.00917.05
8.0.20.0080.01017.40
8.0.10.0040.00417.13
8.0.00.0060.01316.81
7.4.330.0000.00516.88
7.4.320.0030.00316.52
7.4.300.0070.00016.61
7.4.290.0100.00016.53
7.4.280.0040.00416.37
7.4.270.0060.00016.53
7.4.260.0050.00316.39
7.4.250.0000.00716.45
7.4.240.0030.00316.40
7.4.230.0070.00016.45
7.4.220.0040.00216.50
7.4.210.0070.00716.47
7.4.200.0040.00416.71
7.4.160.0080.01016.48
7.4.150.0060.01217.40
7.4.140.0110.00917.86
7.4.130.0090.01216.54
7.4.120.0120.00816.50
7.4.110.0100.00716.52
7.4.100.0100.01316.51
7.4.90.0030.01516.38
7.4.80.0110.00819.39
7.4.70.0100.01016.33
7.4.60.0100.00716.47
7.4.50.0080.00216.69
7.4.40.0120.00316.44
7.4.00.0050.01415.07
7.3.330.0000.00513.16
7.3.320.0060.00313.17
7.3.310.0000.00716.41
7.3.300.0070.00016.22
7.3.290.0030.00316.31
7.3.280.0100.00816.34
7.3.270.0120.00617.40
7.3.260.0110.00616.31
7.3.250.0080.01016.49
7.3.240.0090.00816.41
7.3.230.0080.00816.55
7.3.210.0140.00716.46
7.3.200.0140.00316.68
7.3.190.0080.00816.38
7.3.180.0040.01116.30
7.3.170.0150.00316.57
7.3.160.0130.00316.27
7.3.120.0120.00614.90
7.3.110.0110.00714.80
7.3.100.0070.00614.86
7.3.90.0060.00314.91
7.3.80.0120.00315.21
7.3.70.0030.01014.87
7.3.60.0080.00814.63
7.3.50.0090.00014.66
7.3.40.0040.00414.95
7.3.30.0150.00014.62
7.3.20.0070.01016.68
7.3.10.0070.00816.67
7.3.00.0040.00816.75
7.2.330.0030.01616.57
7.2.320.0000.02016.48
7.2.310.0030.01716.41
7.2.300.0100.00616.73
7.2.290.0090.00616.68
7.2.250.0120.00315.28
7.2.240.0070.01014.88
7.2.230.0060.00915.04
7.2.220.0030.01014.89
7.2.210.0060.00315.19
7.2.200.0060.01015.04
7.2.190.0000.01015.04
7.2.180.0030.01015.13
7.2.170.0040.01115.13
7.2.60.0070.00416.62
7.2.20.0080.00817.82
7.2.10.0460.00817.85
7.2.00.1440.01017.72
7.1.330.0030.00915.62
7.1.320.0070.00715.73
7.1.310.0090.00615.70
7.1.300.0100.00315.54
7.1.290.0000.01315.68
7.1.280.0030.00615.99
7.1.270.0030.01015.88
7.1.260.0060.01015.75
7.1.200.0000.00915.90
7.1.140.0430.01016.71
7.1.130.0760.00716.65
7.1.120.0910.00316.73
7.1.110.0420.01116.04
7.1.100.0160.00516.02
7.1.90.0000.01816.05
7.1.80.0130.01115.77
7.1.70.0260.00915.45
7.1.60.0520.00633.20
7.1.50.0270.02033.13
7.1.40.0640.01332.61
7.1.30.0240.00932.68
7.1.20.0210.00632.86
7.1.10.0280.00614.67
7.1.00.0430.01314.79

preferences:
78.83 ms | 403 KiB | 5 Q