3v4l.org

run code in 300+ PHP versions simultaneously
<?php function microtime_float() { list($usec, $sec) = explode(" ", microtime()); return ((float)$usec + (float)$sec); } $time_start = microtime_float(); $i = 1920 * 1080; $a = 1; while ($i--) { $a << 1; } $time_end = microtime_float(); $time = $time_end - $time_start; echo "Done in $time seconds\n";

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)
7.4.00.0070.04214.97
7.3.120.0030.04515.00
7.3.110.0070.04514.63
7.3.100.0070.04414.63
7.3.90.0070.03314.81
7.3.80.0030.04714.98
7.3.70.0100.04314.89
7.3.60.0130.02214.83
7.3.50.0070.03314.82
7.3.40.0030.02714.75
7.3.30.0030.03214.87
7.3.20.0030.03416.42
7.3.10.0080.02816.71
7.3.00.0050.03116.59
7.2.250.0030.04914.98
7.2.240.0100.04115.24
7.2.230.0070.03014.94
7.2.220.0070.03315.18
7.2.210.0030.04814.95
7.2.200.0100.03115.00
7.2.190.0070.03415.23
7.2.180.0100.02715.16
7.2.170.0100.02715.05
7.2.160.0070.03014.80
7.2.150.0070.03017.02
7.2.140.0100.02916.90
7.2.130.0050.03216.99
7.2.120.0020.03716.82
7.2.110.0030.03616.89
7.2.100.0100.02816.99
7.2.90.0090.02917.00
7.2.80.0050.03217.01
7.2.70.0080.03316.94
7.2.60.0070.03017.05
7.2.50.0080.03217.01
7.2.40.0050.03517.02
7.2.30.0080.03016.97
7.2.20.0080.03016.92
7.2.10.0060.03417.03
7.2.00.0060.03416.89
7.1.330.0110.09115.87
7.1.320.0100.08815.88
7.1.310.0030.08815.78
7.1.300.0070.08515.75
7.1.290.0100.07815.72
7.1.280.0070.08315.88
7.1.270.0070.08115.84
7.1.260.0000.09015.81
7.1.250.0070.08515.78
7.1.240.0030.08915.75
7.1.230.0030.08515.60
7.1.220.0000.08415.68
7.1.210.0070.08215.73
7.1.200.0070.08215.93
7.1.190.0030.08415.89
7.1.180.0030.09615.50
7.1.170.0070.08715.71
7.1.160.0070.08015.61
7.1.150.0070.08215.88
7.1.140.0030.08415.93
7.1.130.0030.08815.62
7.1.120.0100.07915.75
7.1.110.0030.07915.91
7.1.100.0070.08515.86
7.1.90.0100.08515.79
7.1.80.0100.08015.91
7.1.70.0050.07816.63
7.1.60.0120.07017.51
7.1.50.0100.07216.31
7.1.40.0030.09815.86
7.1.30.0030.08515.90
7.1.20.0070.08015.64
7.1.10.0000.08815.84
7.1.00.0020.10418.97
7.0.330.0030.08815.25
7.0.320.0030.08815.43
7.0.310.0030.08715.57
7.0.300.0000.09015.11
7.0.290.0030.09415.35
7.0.280.0070.07915.45
7.0.270.0070.09515.42
7.0.260.0070.08515.03
7.0.250.0130.07915.58
7.0.240.0030.09915.44
7.0.230.0030.08615.55
7.0.220.0030.08615.48
7.0.210.0070.09315.30
7.0.200.0020.07116.06
7.0.190.0070.08715.34
7.0.180.0030.08915.38
7.0.170.0100.09115.52
7.0.160.0100.09915.20
7.0.150.0030.09015.50
7.0.140.0030.08715.61
7.0.130.0100.08315.27
7.0.120.0030.08615.34
7.0.110.0030.09615.45
7.0.100.0070.08815.41
7.0.90.0070.09615.59
7.0.80.0070.09415.32
7.0.70.0030.08915.41
7.0.60.0070.09118.40
7.0.50.0120.11117.90
7.0.40.0270.08916.98
7.0.30.0200.09616.91
7.0.20.0080.09716.91
7.0.10.0130.09917.02
7.0.00.0220.10717.01
5.6.400.0030.13914.50
5.6.390.0000.14414.52
5.6.380.0030.14014.31
5.6.370.0000.14714.80
5.6.360.0030.14014.40
5.6.350.0070.14114.54
5.6.340.0030.13314.22
5.6.330.0030.14914.26
5.6.320.0030.13814.51
5.6.310.0030.14214.36
5.6.300.0070.14514.63
5.6.290.0030.14914.58
5.6.280.0050.14017.59
5.6.270.0100.14214.48
5.6.260.0000.14814.21
5.6.250.0030.14114.28
5.6.240.0100.12914.45
5.6.230.0030.13514.36
5.6.220.0100.13314.34
5.6.210.0070.13617.47
5.6.200.0050.14816.17
5.6.190.0200.13717.84
5.6.180.0200.12817.81
5.6.170.0180.14017.71
5.6.160.0220.13817.72
5.6.150.0200.13217.69
5.6.140.0220.13317.65
5.6.130.0170.13917.74
5.6.120.0080.13417.77
5.6.110.0180.13617.64
5.6.100.0170.16217.79
5.6.90.0250.14417.79
5.6.80.0170.15517.32
5.6.70.0130.14617.37
5.6.60.0120.16017.29
5.6.50.0180.14717.39
5.6.40.0100.15517.44
5.6.30.0120.13017.44
5.6.20.0120.12617.53
5.6.10.0120.12917.37
5.6.00.0030.15417.30
5.5.380.0000.16514.30
5.5.370.0070.14414.37
5.5.360.0030.14914.01
5.5.350.2000.11017.48
5.5.340.0050.14216.21
5.5.330.0150.13917.77
5.5.320.0170.13517.59
5.5.310.0200.16017.58
5.5.300.0270.12717.69
5.5.290.0180.15917.75
5.5.280.0130.17717.69
5.5.270.0120.15517.57
5.5.260.0230.13217.65
5.5.250.0250.16817.35
5.5.240.0280.15717.16
5.5.230.0100.15817.17
5.5.220.0180.13917.19
5.5.210.0200.16117.37
5.5.200.0120.14617.26
5.5.190.0200.14517.19
5.5.180.0100.13017.26
5.5.170.0070.14514.29
5.5.160.0220.11817.28
5.5.150.0120.14717.33
5.5.140.0070.17317.02
5.5.130.0120.14717.17
5.5.120.0170.15117.25
5.5.110.0080.12917.31
5.5.100.0170.12917.20
5.5.90.0300.11817.19
5.5.80.0200.13717.26
5.5.70.0170.13017.28
5.5.60.0220.12617.34
5.5.50.0220.15217.09
5.5.40.0120.16017.03
5.5.30.0250.12417.05
5.5.20.0100.13817.07
5.5.10.0130.12916.99
5.5.00.0130.14417.14

preferences:
34.3 ms | 401 KiB | 5 Q