3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = []; foreach ([0, '', null, false, ' ', '0', .0] as $v) { $k = match(true) { $v != null => '!= null', $v == null => '== null', // This should never occur. default => '?', }; $result[$k][] = $v; } var_export($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.10.0040.01223.55
8.3.140.0070.00019.10
8.3.130.0060.00316.54
8.3.120.0090.00920.95
8.3.110.0110.00816.82
8.3.100.0090.00024.06
8.3.90.0060.00926.77
8.3.80.0000.00917.97
8.3.70.0030.01616.50
8.3.60.0130.00716.63
8.3.50.0170.00316.79
8.3.40.0100.00322.08
8.3.30.0040.01118.79
8.3.20.0050.00324.18
8.3.10.0070.00024.66
8.3.00.0070.00026.16
8.2.260.0110.00417.17
8.2.250.0100.01016.53
8.2.240.0060.00317.40
8.2.230.0060.01320.94
8.2.220.0080.00037.54
8.2.210.0040.00426.77
8.2.200.0000.00916.50
8.2.190.0070.00716.58
8.2.180.0100.01316.63
8.2.170.0040.01119.04
8.2.160.0060.01122.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0110.00720.94
8.2.110.0060.00319.27
8.2.100.0040.00717.85
8.2.90.0000.01017.75
8.2.80.0060.00318.77
8.2.70.0000.00817.63
8.2.60.0180.00017.24
8.2.50.0100.00717.50
8.2.40.0080.00817.38
8.2.30.0130.00217.50
8.2.20.0100.00717.13
8.2.10.0050.01117.38
8.2.00.0090.00917.36
8.1.310.0030.00616.90
8.1.300.0160.00317.69
8.1.290.0060.00330.84
8.1.280.0120.00625.92
8.1.270.0050.00324.66
8.1.260.0070.00026.35
8.1.250.0000.00828.09
8.1.240.0000.00822.19
8.1.230.0090.00320.73
8.1.220.0080.00017.74
8.1.210.0030.00618.77
8.1.200.0060.00317.23
8.1.190.0130.00417.00
8.1.180.0100.00716.88
8.1.170.0110.00517.00
8.1.160.0070.01317.10
8.1.150.0200.00017.00
8.1.140.0120.00616.63
8.1.130.0040.01217.35
8.1.120.0150.00017.25
8.1.110.0050.01017.38
8.1.100.0160.00017.25
8.1.90.0080.00817.00
8.1.80.0050.01117.23
8.1.70.0050.01117.13
8.1.60.0150.00417.25
8.1.50.0040.01317.36
8.1.40.0120.00617.10
8.1.30.0110.00817.25
8.1.20.0100.00717.38
8.1.10.0110.00717.50
8.1.00.0180.00017.38
8.0.300.0070.00020.04
8.0.290.0000.00816.63
8.0.280.0110.00416.63
8.0.270.0100.00616.52
8.0.260.0130.00316.60
8.0.250.0130.00516.52
8.0.240.0140.00316.52
8.0.230.0140.00516.52
8.0.220.0140.00216.63
8.0.210.0160.00416.52
8.0.200.0150.00316.75
8.0.190.0140.00316.63
8.0.180.0100.00716.75
8.0.170.0100.00716.88
8.0.160.0100.00616.63
8.0.150.0110.00616.52
8.0.140.0040.01216.63
8.0.130.0160.00016.52
8.0.120.0120.00416.63
8.0.110.0120.00416.52
8.0.100.0080.00816.52
8.0.90.0160.00016.52
8.0.80.0160.00016.63
8.0.70.0120.00416.52
8.0.60.0040.01116.52
8.0.50.0160.00016.52
8.0.30.0170.00016.52
8.0.20.0110.00616.52
8.0.10.0180.00016.52

preferences:
32.84 ms | 403 KiB | 5 Q