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(); var_dump($time); $time_end = microtime_float(); $time = round( ( $time_end - $time_start ) * 1000 ); echo "time: $time ms\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.1.70.0090.00016.85
7.1.60.0100.00719.40
7.1.50.0060.01316.92
7.1.00.0030.07022.42
7.0.200.0040.00416.56
7.0.140.0030.07321.95
7.0.120.0100.05322.17
7.0.60.0100.07019.98
7.0.50.0070.03717.83
7.0.40.0130.03017.84
7.0.30.0070.03717.86
7.0.20.0030.04017.80
7.0.10.0130.03717.76
7.0.00.0130.03717.79
5.6.280.0030.07321.06
5.6.210.0130.07320.51
5.6.200.0070.03718.14
5.6.190.0000.04318.25
5.6.180.0000.04018.29
5.6.170.0030.04018.12
5.6.160.0100.03318.19
5.6.150.0030.03718.14
5.6.140.0000.04018.18
5.6.130.0030.04718.15
5.6.120.0070.03718.15
5.6.110.0070.08018.23
5.6.100.0070.08718.11
5.6.90.0030.08318.10
5.6.80.0100.04717.57
5.6.70.0130.06317.57
5.6.60.0130.07317.55
5.6.50.0030.07717.62
5.6.40.0070.07017.54
5.6.30.0000.06317.50
5.6.20.0100.06717.63
5.6.10.0030.07717.55
5.6.00.0030.08017.50
5.5.350.0030.05320.39
5.5.340.0100.05017.95
5.5.330.0100.03317.96
5.5.320.0000.04017.98
5.5.310.0070.03718.05
5.5.300.0030.04018.05
5.5.290.0100.03317.99
5.5.280.0030.04017.97
5.5.270.0070.06718.04
5.5.260.0100.06717.95
5.5.250.0070.08017.90
5.5.240.0070.06717.38
5.5.230.0100.07317.34
5.5.220.0030.07017.45
5.5.210.0030.08017.36
5.5.200.0100.07017.34
5.5.190.0030.08317.33
5.5.180.0070.07317.32
5.5.160.0130.07017.34
5.5.150.0030.07317.34
5.5.140.0170.07017.36
5.5.130.0030.07317.29
5.5.120.0070.05717.34
5.5.110.0070.05017.33
5.5.100.0030.04017.22
5.5.90.0000.04717.21
5.5.80.0030.08017.17
5.5.70.0070.07717.32
5.5.60.0000.08317.21
5.5.50.0000.08317.32
5.5.40.0100.04317.14
5.5.30.0030.08017.20
5.5.20.0100.07017.22
5.5.10.0000.07017.25
5.5.00.0070.05317.27
5.4.450.0070.03719.60
5.4.440.0000.04019.44
5.4.430.0070.03719.27
5.4.420.0100.07319.39
5.4.410.0070.05319.35
5.4.400.0170.04719.09
5.4.390.0070.06319.20
5.4.380.0070.07719.11
5.4.370.0170.05718.92
5.4.360.0070.05319.02
5.4.350.0070.08018.95
5.4.340.0170.06719.12
5.4.320.0170.06719.08
5.4.310.0100.07718.95
5.4.300.0070.06019.22
5.4.290.0030.05319.22
5.4.280.0100.06019.02
5.4.270.0030.05019.26
5.4.260.0030.04019.01
5.4.250.0100.03319.20
5.4.240.0070.06019.01
5.4.230.0030.04019.09
5.4.220.0100.07719.04
5.4.210.0000.07319.09
5.4.200.0130.06718.95
5.4.190.0130.06719.00
5.4.180.0200.06319.11
5.4.170.0230.06019.18
5.4.160.0130.05719.08
5.4.150.0100.06719.00
5.4.140.0070.07316.47
5.4.130.0030.04716.45
5.4.120.0070.07316.63
5.4.110.0100.07016.48
5.4.100.0030.07716.35
5.4.90.0100.07016.55
5.4.80.0170.05316.45
5.4.70.0030.04716.54
5.4.60.0000.07316.57
5.4.50.0100.07016.45
5.4.40.0100.07316.34
5.4.30.0170.05316.52
5.4.20.0000.07716.45
5.4.10.0070.05316.43
5.4.00.0070.06016.08
5.3.290.0070.07014.70
5.3.280.0030.05714.59
5.3.270.0100.06314.73
5.3.260.0070.04714.70
5.3.250.0070.07714.73
5.3.240.0030.05714.63
5.3.230.0030.05014.57
5.3.220.0030.04014.59
5.3.210.0100.03314.59
5.3.200.0100.07714.48
5.3.190.0100.03714.63
5.3.180.0100.03314.66
5.3.170.0130.07314.60
5.3.160.0130.03714.68
5.3.150.0100.07014.61
5.3.140.0100.07314.70
5.3.130.0130.07014.58
5.3.120.0030.06314.61
5.3.110.0100.07714.66
5.3.100.0000.08314.06
5.3.90.0100.05714.07
5.3.80.0000.04714.11
5.3.70.0100.06314.21
5.3.60.0100.07014.00
5.3.50.0130.07013.95
5.3.40.0000.08014.01
5.3.30.0070.07713.96
5.3.20.0100.04013.59
5.3.10.0130.05313.74
5.3.00.0070.07713.67
5.2.170.0070.06011.29
5.2.160.0000.06711.23
5.2.150.0030.06311.27
5.2.140.0030.07011.54
5.2.130.0030.06311.23
5.2.120.0030.03711.50
5.2.110.0170.03011.51
5.2.100.0100.05711.23
5.2.90.0070.06011.50
5.2.80.0070.06011.22
5.2.70.0030.06011.32
5.2.60.0070.04011.17
5.2.50.0030.06311.11
5.2.40.0100.05711.25
5.2.30.0030.06011.13
5.2.20.0030.05711.18
5.2.10.0070.05710.89
5.2.00.0100.05710.82
5.1.60.0000.05310.11
5.1.50.0100.04710.23
5.1.40.0100.04710.30
5.1.30.0130.05010.41
5.1.20.0100.05010.48
5.1.10.0170.05010.32
5.1.00.0100.05310.29
5.0.50.0030.0478.68
5.0.40.0170.0338.68
5.0.30.0030.0608.68
5.0.20.0030.0408.68
5.0.10.0070.0378.68
5.0.00.0070.0638.68
4.4.90.0000.0308.68
4.4.80.0000.0378.68
4.4.70.0000.0378.68
4.4.60.0030.0308.68
4.4.50.0100.0278.68
4.4.40.0030.0538.68
4.4.30.0000.0378.68
4.4.20.0070.0308.68
4.4.10.0000.0278.68
4.4.00.0030.0438.68
4.3.110.0000.0208.68
4.3.100.0000.0208.68
4.3.90.0130.0278.68
4.3.80.0030.0478.68
4.3.70.0000.0338.68
4.3.60.0000.0238.68
4.3.50.0000.0338.68
4.3.40.0030.0378.68
4.3.30.0030.0338.68
4.3.20.0030.0278.68
4.3.10.0030.0208.68
4.3.00.0000.0378.68

preferences:
30.64 ms | 401 KiB | 5 Q