3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [0,1,2,3,4,5,6,7,8,9]; foreach ($arr as $item) { if ($item > 4) { echo $item; unset($item); } } 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.0110.01120.35
8.4.110.0140.00622.45
8.4.100.0100.01218.84
8.4.90.0130.00818.79
8.4.80.0030.00618.70
8.4.70.0110.00817.86
8.4.60.0110.00820.57
8.4.50.0110.01018.65
8.4.40.0100.01018.68
8.4.30.0130.00618.69
8.4.20.0170.00319.71
8.4.10.0070.00319.27
8.3.250.0130.00518.77
8.3.240.0110.01017.22
8.3.230.0060.01116.35
8.3.220.0070.00718.87
8.3.210.0110.00916.74
8.3.200.0110.00916.55
8.3.190.0100.00017.21
8.3.180.0100.00918.95
8.3.170.0090.00918.72
8.3.160.0180.00017.09
8.3.150.0100.00317.26
8.3.140.0090.00618.93
8.3.130.0080.00018.34
8.3.120.0100.00620.78
8.3.110.0090.00620.94
8.3.100.0000.00824.06
8.3.90.0050.00326.77
8.3.80.0060.00317.97
8.3.70.0150.00618.30
8.3.60.0090.00916.57
8.3.50.0060.01218.25
8.3.40.0160.00719.79
8.3.30.0070.01419.10
8.3.20.0190.00321.69
8.3.10.0090.01221.73
8.3.00.0100.01018.84
8.2.290.0100.00820.56
8.2.280.0130.00618.16
8.2.270.0110.00716.59
8.2.260.0180.00016.88
8.2.250.0070.01116.59
8.2.240.0060.00317.24
8.2.230.0060.00322.58
8.2.220.0030.00637.54
8.2.210.0080.00026.77
8.2.200.0040.00418.54
8.2.190.0120.00618.37
8.2.180.0140.01016.32
8.2.170.0130.01018.86
8.2.160.0170.00720.13
8.2.150.0070.01319.16
8.2.140.0150.00420.39
8.2.130.0110.00720.50
8.2.120.0070.01119.22
8.2.110.0040.01119.27
8.2.100.0070.01019.10
8.2.90.0120.00318.96
8.2.80.0070.01019.40
8.2.70.0080.00818.56
8.2.60.0140.00019.02
8.2.50.0070.00719.23
8.2.40.0070.00718.69
8.2.30.0120.00618.88
8.2.20.0110.00418.66
8.2.10.0120.00318.60
8.2.00.0040.01118.65
8.1.330.0130.00622.01
8.1.320.0100.01017.64
8.1.310.0000.00716.76
8.1.300.0040.00417.70
8.1.290.0090.00030.84
8.1.280.0090.00625.92
8.1.270.0060.00922.23
8.1.260.0100.00721.98
8.1.250.0100.00722.07
8.1.240.0120.00318.48
8.1.230.0090.00918.45
8.1.220.0150.00318.87
8.1.210.0120.00318.38
8.1.200.0110.00818.65
8.1.190.0120.00618.55
8.1.180.0160.00618.29
8.1.170.0100.00718.87
8.1.160.0110.00418.37
8.1.150.0140.00018.87
8.1.140.0040.01218.78
8.1.130.0150.00018.74
8.1.120.0060.00918.59
8.1.110.0110.00418.60
8.1.100.0090.00619.88
8.1.90.0090.00618.73
8.1.80.0070.00719.77
8.1.70.0000.01418.88
8.1.60.0120.00318.66
8.1.50.0110.00418.59
8.1.40.0150.00018.66
8.1.30.0110.00318.95
8.1.20.0120.00319.99
8.1.10.0070.00718.62
8.1.00.0110.00418.36

preferences:
46.63 ms | 403 KiB | 5 Q