3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = []; $maybeZero = 2; if (count($arr) == $maybeZero) { } else { var_dump($arr); }

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.120.0100.00920.33
8.4.110.0030.00622.49
8.4.100.0070.00417.67
8.4.90.0090.00918.61
8.4.80.0060.00417.68
8.4.70.0110.00617.60
8.4.60.0100.01018.43
8.4.50.0120.00319.63
8.4.40.0080.00817.77
8.4.30.0050.00320.79
8.4.20.0090.01219.28
8.4.10.0030.00619.43
8.3.250.0100.00618.64
8.3.240.0100.01016.53
8.3.230.0130.00816.65
8.3.220.0110.00416.98
8.3.210.0050.00416.67
8.3.200.0050.00416.43
8.3.190.0110.00718.92
8.3.180.0140.00518.35
8.3.170.0060.01217.30
8.3.160.0070.01120.64
8.3.150.0070.01116.60
8.3.140.0120.00616.70
8.3.130.0030.00618.54
8.3.120.0030.00620.89
8.3.110.0170.01322.58
8.3.100.0190.00622.58
8.3.90.0150.00622.58
8.3.80.0190.00622.58
8.3.70.0190.00622.58
8.3.60.0210.00322.58
8.3.50.0220.00322.58
8.3.40.0130.00922.58
8.3.30.0210.00322.58
8.3.20.0110.00822.58
8.3.10.0160.00422.58
8.3.00.0140.00622.58
8.2.290.0100.00920.29
8.2.280.0080.01118.42
8.2.270.0110.00016.05
8.2.260.0140.00316.57
8.2.250.0040.00418.82
8.2.240.0110.00716.85
8.2.230.0000.01122.58
8.2.220.0160.00322.58
8.2.210.0130.00422.58
8.2.200.0200.00022.58
8.2.190.0170.00322.58
8.2.180.0140.00522.58
8.2.170.0150.00922.58
8.2.160.0130.00722.58
8.2.150.0200.00022.58
8.2.140.0220.00022.58
8.2.130.0190.00322.58
8.2.120.0190.00322.58
8.2.110.0180.00422.58
8.2.100.0140.00622.58
8.2.90.0160.00522.58
8.2.80.0220.00022.58
8.2.70.0210.00022.58
8.2.60.0170.00422.58
8.2.50.0190.00322.58
8.2.40.0160.00322.58
8.2.30.0100.01022.58
8.2.20.0170.00422.58
8.2.10.0180.00322.58
8.2.00.0160.00722.58
8.1.330.0090.01220.40
8.1.320.0110.00916.04
8.1.310.0050.00316.78
8.1.300.0120.00415.91
8.1.290.0120.00922.58
8.1.280.0170.00422.58
8.1.270.0150.00422.58
8.1.260.0170.00622.58
8.1.250.0230.00022.58
8.1.240.0150.00622.58
8.1.230.0150.00422.58
8.1.220.0150.00522.58
8.1.210.0140.00622.58
8.1.200.0170.00522.58
8.1.190.0220.00022.58
8.1.180.0140.00622.58
8.1.170.0150.00422.58
8.1.160.0120.00922.58
8.1.150.0190.00022.58
8.1.140.0210.00022.58
8.1.130.0140.00822.58
8.1.120.0200.00322.58
8.1.110.0180.00422.58
8.1.100.0220.00022.58
8.1.90.0180.00522.58
8.1.80.0040.01722.58
8.1.70.0240.00322.58
8.1.60.0210.00322.58
8.1.50.0240.00022.58
8.1.40.0180.00722.58
8.1.30.0250.00022.58
8.1.20.0200.00322.58
8.1.10.0180.00522.58
8.1.00.0160.00622.58

preferences:
28.17 ms | 403 KiB | 5 Q