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, 3 ); 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.4.00.0030.00915.18
7.3.120.0000.01715.10
7.3.110.0030.01315.04
7.3.100.0030.01015.11
7.3.90.0080.00814.92
7.3.80.0100.00014.89
7.3.70.0030.00615.02
7.3.60.0070.01014.93
7.3.50.0060.00614.82
7.3.40.0040.01114.86
7.3.30.0000.01014.99
7.3.20.0060.00316.86
7.3.10.0000.01116.59
7.3.00.0040.01116.69
7.2.250.0100.00715.27
7.2.240.0070.01115.08
7.2.230.0000.01414.74
7.2.220.0000.01615.15
7.2.210.0090.00614.63
7.2.200.0030.00914.96
7.2.190.0040.01114.80
7.2.180.0070.00715.04
7.2.170.0070.00714.91
7.2.160.0070.00714.90
7.2.150.0040.00716.98
7.2.140.0060.01116.76
7.2.130.0080.00816.89
7.2.120.0030.01316.95
7.2.110.0070.01016.97
7.2.100.0100.00317.04
7.2.90.0140.00416.95
7.2.80.0040.01216.99
7.2.70.0040.01117.00
7.2.60.0000.01516.75
7.2.50.0090.00016.66
7.2.40.0040.00817.04
7.2.30.0040.01117.03
7.2.20.0090.00017.04
7.2.10.0110.00316.55
7.2.00.0050.00618.14
7.1.330.0070.01016.04
7.1.320.0100.00315.60
7.1.310.0030.01015.79
7.1.300.0110.00015.96
7.1.290.0070.00715.78
7.1.280.0050.00515.96
7.1.270.0030.01215.88
7.1.260.0060.00915.91
7.1.250.0060.00315.54
7.1.70.0050.00317.21
7.1.60.0110.01419.40
7.1.50.0030.01717.04
7.1.00.0030.07322.24
7.0.200.0070.00016.63
7.0.140.0030.07022.07
7.0.120.0030.07322.05
7.0.60.0100.07720.02
7.0.50.0070.08017.89
7.0.40.0100.07717.72
7.0.30.0130.04717.86
7.0.20.0130.05017.74
7.0.10.0100.06317.75
7.0.00.0100.05317.72
5.6.280.0100.06720.82
5.6.210.0100.08020.71
5.6.200.0100.08018.29
5.6.190.0070.08018.28
5.6.180.0030.04318.23
5.6.170.0170.06318.21
5.6.160.0100.08018.12
5.6.150.0070.08018.12
5.6.140.0100.06318.18
5.6.130.0070.07318.28
5.6.120.0030.07318.12
5.6.110.0100.08018.15
5.6.100.0100.03718.17
5.6.90.0030.07718.26
5.6.80.0030.06017.56
5.6.70.0100.07317.53
5.6.60.0030.08017.56
5.6.50.0130.07317.50
5.6.40.0070.07717.57
5.6.30.0000.04317.64
5.6.20.0070.07017.64
5.6.10.0030.04017.54
5.6.00.0030.06717.61
5.5.350.0330.03320.36
5.5.340.0100.07718.09
5.5.330.0100.08018.00
5.5.320.0070.08018.00
5.5.310.0130.07717.96
5.5.300.0030.06718.08
5.5.290.0070.06018.03
5.5.280.0130.06317.97
5.5.270.0030.04717.95
5.5.260.0000.04718.04
5.5.250.0030.06017.81
5.5.240.0070.06017.38
5.5.230.0030.04017.39
5.5.220.0100.04717.32
5.5.210.0070.07017.47
5.5.200.0030.04017.29
5.5.190.0030.04017.27
5.5.180.0130.05717.34
5.5.160.0000.08017.37
5.5.150.0100.05017.30
5.5.140.0100.06317.32
5.5.130.0130.03717.43
5.5.120.0070.08017.43
5.5.110.0070.08017.34
5.5.100.0070.07717.29
5.5.90.0070.04317.20
5.5.80.0170.06717.34
5.5.70.0100.07317.25
5.5.60.0130.06017.29
5.5.50.0070.07317.31
5.5.40.0070.07717.32
5.5.30.0130.07017.23
5.5.20.0000.05317.21
5.5.10.0170.07017.28
5.5.00.0070.03317.32
5.4.450.0170.07319.32
5.4.440.0100.07319.41
5.4.430.0100.03319.45
5.4.420.0070.04719.41
5.4.410.0100.07719.29
5.4.400.0070.03719.07
5.4.390.0170.06319.11
5.4.380.0100.04019.02
5.4.370.0070.05319.02
5.4.360.0030.06719.12
5.4.350.0070.07319.02
5.4.340.0000.07019.07
5.4.320.0030.08018.95
5.4.310.0130.03019.12
5.4.300.0130.04319.04
5.4.290.0130.05719.01
5.4.280.0030.04019.09
5.4.270.0070.05319.13
5.4.260.0070.07019.05
5.4.250.0100.07319.19
5.4.240.0100.04319.12
5.4.230.0030.06019.07
5.4.220.0000.04719.11
5.4.210.0030.08019.09
5.4.200.0000.05019.09
5.4.190.0000.06719.08
5.4.180.0070.04319.11
5.4.170.0100.03719.11
5.4.160.0070.07719.03
5.4.150.0100.04319.01
5.4.140.0030.04716.39
5.4.130.0070.06716.42
5.4.120.0070.06016.35
5.4.110.0000.07316.32
5.4.100.0030.06016.58
5.4.90.0000.04716.30
5.4.80.0030.03716.54
5.4.70.0070.06716.46
5.4.60.0030.07716.30
5.4.50.0000.05316.48
5.4.40.0030.07716.58
5.4.30.0030.06316.51
5.4.20.0100.06716.27
5.4.10.0030.07716.45
5.4.00.0030.07316.08
5.3.290.0130.07014.72
5.3.280.0070.07714.70
5.3.270.0000.08314.66
5.3.260.0070.05314.63
5.3.250.0030.04314.71
5.3.240.0070.07314.64
5.3.230.0070.03714.71
5.3.220.0130.06714.57
5.3.210.0130.05014.57
5.3.200.0000.08314.71
5.3.190.0130.04014.59
5.3.180.0100.04314.70
5.3.170.0070.06714.59
5.3.160.0070.06314.57
5.3.150.0070.07014.48
5.3.140.0030.07014.65
5.3.130.0030.08014.65
5.3.120.0070.07714.65
5.3.110.0100.07714.65
5.3.100.0100.07014.05
5.3.90.0100.07014.04
5.3.80.0070.08014.11
5.3.70.0000.06314.10
5.3.60.0100.07314.04
5.3.50.0100.07313.93
5.3.40.0070.07013.99
5.3.30.0070.06713.98
5.3.20.0130.07013.71
5.3.10.0030.04013.72
5.3.00.0100.06313.65
5.2.170.0170.05011.23
5.2.160.0070.04711.38
5.2.150.0030.04011.38
5.2.140.0000.05311.54
5.2.130.0000.04011.52
5.2.120.0130.05011.36
5.2.110.0070.03711.24
5.2.100.0070.03011.28
5.2.90.0030.03011.23
5.2.80.0030.06311.34
5.2.70.0030.05711.12
5.2.60.0070.05311.22
5.2.50.0100.04311.16
5.2.40.0030.06011.17
5.2.30.0000.06311.06
5.2.20.0070.05011.15
5.2.10.0000.06710.94
5.2.00.0070.03010.86
5.1.60.0000.02710.11
5.1.50.0100.04710.39
5.1.40.0000.03010.00
5.1.30.0030.06010.55
5.1.20.0070.05710.57
5.1.10.0030.03710.29
5.1.00.0030.04010.15
5.0.50.0070.0308.72
5.0.40.0030.0338.67
5.0.30.0000.0678.67
5.0.20.0070.0408.67
5.0.10.0100.0378.67
5.0.00.0070.0608.67
4.4.90.0000.0408.67
4.4.80.0030.0378.67
4.4.70.0030.0278.67
4.4.60.0070.0308.67
4.4.50.0070.0238.67
4.4.40.0030.0438.67
4.4.30.0070.0208.67
4.4.20.0030.0338.67
4.4.10.0000.0338.67
4.4.00.0000.0578.67
4.3.110.0030.0338.67
4.3.100.0030.0378.67
4.3.90.0070.0338.67
4.3.80.0030.0538.67
4.3.70.0000.0238.67
4.3.60.0000.0238.67
4.3.50.0100.0308.67
4.3.40.0000.0578.67
4.3.30.0000.0378.67
4.3.20.0000.0378.67
4.3.10.0000.0238.67
4.3.00.0000.0278.67

preferences:
30.09 ms | 400 KiB | 5 Q