3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dataset = array("a" => "one", "b" => "two"); reset($dataset); while ($a = current($dataset)) { var_dump($a); }

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.3.60.0360.01318.27
8.3.50.0300.01521.92
8.3.40.0410.00318.68
8.3.30.0160.00918.88
8.3.20.0160.00320.21
8.3.10.0180.00323.53
8.3.00.0180.00420.94
8.2.180.0310.02818.05
8.2.170.0100.01422.96
8.2.160.0180.00720.39
8.2.150.0160.00624.18
8.2.140.0160.00724.66
8.2.130.0130.00626.16
8.2.120.0070.00719.13
8.2.110.0150.00022.27
8.2.100.0240.00617.78
8.2.90.0120.00419.05
8.2.80.0070.00317.97
8.2.70.0100.01017.38
8.2.60.0100.00317.78
8.2.50.0060.00918.07
8.2.40.0030.00818.08
8.2.30.0100.00318.23
8.2.20.0070.00717.61
8.2.10.0030.00618.12
8.2.00.0110.00319.41
8.1.280.0340.01525.92
8.1.270.0100.00323.66
8.1.260.0210.00026.35
8.1.250.0070.00728.09
8.1.240.0210.00623.84
8.1.230.0210.00719.03
8.1.220.0090.00617.74
8.1.210.0100.00318.77
8.1.200.0150.01017.23
8.1.190.0110.00417.10
8.1.180.0100.00318.10
8.1.170.0070.00718.52
8.1.160.0070.00721.91
8.1.150.0060.01218.53
8.1.140.0090.00617.32
8.1.130.0070.00717.92
8.1.120.0100.00017.45
8.1.110.0060.00617.50
8.1.100.0060.00617.48
8.1.90.0060.01017.45
8.1.80.0060.00317.38
8.1.70.0060.00617.33
8.1.60.0180.00017.54
8.1.50.0120.00617.50
8.1.40.0110.00717.56
8.1.30.0040.01117.61
8.1.20.0060.00617.59
8.1.10.0100.00017.53
8.1.00.0070.00717.36
8.0.300.0000.00918.77
8.0.290.0070.00716.58
8.0.280.0030.00718.32
8.0.270.0180.00017.17
8.0.260.0070.00317.09
8.0.250.0080.00816.77
8.0.240.0090.00916.80
8.0.230.0050.00516.80
8.0.220.0030.00616.81
8.0.210.0100.00316.72
8.0.200.0080.00616.80
8.0.190.0130.00016.84
8.0.180.0070.00716.77
8.0.170.0130.00316.63
8.0.160.0000.01016.71
8.0.150.0060.00916.72
8.0.140.0070.00716.77
8.0.130.0030.00613.20
8.0.120.0110.00416.68
8.0.110.0130.00316.66
8.0.100.0070.00316.73
8.0.90.0090.00516.54
8.0.80.0280.02516.70
8.0.70.0100.00316.71
8.0.60.0030.00716.57
8.0.50.0070.00716.59
8.0.30.0520.02816.94
8.0.20.0550.04017.40
8.0.10.0040.01116.80
8.0.00.0540.01716.54
7.4.330.0070.00415.09
7.4.320.0070.00716.29
7.4.300.0100.00316.38
7.4.290.0100.00316.18
7.4.280.0110.00616.41
7.4.270.0100.00316.33
7.4.260.0100.00716.29
7.4.250.0120.00416.26
7.4.240.0110.00516.41
7.4.230.0060.00616.20
7.4.220.0330.03816.49
7.4.210.0100.02016.43
7.4.200.0030.01016.43
7.4.160.0250.01316.33
7.4.150.0640.00617.40
7.4.140.0550.02917.86
7.4.130.0610.02916.39
7.4.120.0590.03016.34
7.4.110.0740.02816.50
7.4.100.0380.01016.29
7.4.90.0560.02416.46
7.4.80.0410.02219.39
7.4.70.0600.03616.27
7.4.60.0330.02116.27
7.4.50.0040.00816.15
7.4.40.0600.02416.31
7.4.30.0380.03116.45
7.4.00.0220.01614.95
7.3.330.0100.00312.88
7.3.320.0090.00312.98
7.3.310.0070.00715.83
7.3.300.0000.00916.02
7.3.290.0270.02016.05
7.3.280.0150.03616.06
7.3.270.0540.03117.40
7.3.260.0320.02116.28
7.3.250.0660.03416.04
7.3.240.0740.02716.12
7.3.230.0750.05716.39
7.3.210.0560.02516.14
7.3.200.0460.03119.39
7.3.190.0520.03716.12
7.3.180.0150.04216.30
7.3.170.0270.03116.27
7.3.160.0250.02916.12
7.3.120.0190.01214.52
7.2.330.0960.03616.50
7.2.320.0630.05016.48
7.2.310.0420.04316.22
7.2.300.0270.02516.30
7.2.290.0830.03416.53
7.2.60.0240.00416.61
7.2.50.0160.00316.72
7.1.200.0110.01015.74
7.1.70.0100.01317.02
7.1.60.0170.01319.70
7.1.50.0280.00917.02
7.0.200.0140.00716.29

preferences:
42.62 ms | 401 KiB | 5 Q