3v4l.org

run code in 300+ PHP versions simultaneously
<?php for($i=1;$i<1001;$i*=10) { $starttime=round( microtime(TRUE)*$i); $now= shortenb64($starttime); $len=strlen($now); $min= str_repeat("0", $len); $max= str_repeat("z", $len); $nowtime=date("Y-m-d H:i:s", $nowS=epxandb64($now)/$i); $minS=epxandb64($min)/$i; $maxS=epxandb64($max)/$i; $minYear = 1970+($minS/ (60*60*24*365.25)); $maxYear = 1970+($maxS/ (60*60*24*365.25)); echo "$i $starttime \t $now ($nowtime): \t min year ($minYear) \t max year ($maxYear)\n"; } function shortenb64($id, $alphabet='-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz') { $base = strlen($alphabet); $short = ''; while($id) { $id = ($id-($r=$id%$base))/$base; $short = $alphabet{$r} . $short; } return $short; } function epxandb64($id, $alphabet='-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz') { $base = strlen($alphabet); $len = strlen($id)-1; $long = 0.0; $mul=1; for($i=$len;$i>=0;$i--) { $long += strpos($alphabet, substr($id, $i,1))*$mul; $mul *= $base; } return $long; }

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.10.0040.01515.16
7.4.00.0130.00615.36
7.3.130.0070.01114.88
7.3.120.0150.00415.07
7.3.110.0110.00314.90
7.3.100.0140.00415.00
7.3.90.0100.00314.93
7.3.80.0070.00714.99
7.3.70.0090.00614.74
7.3.60.0080.00015.14
7.3.50.0050.00514.82
7.3.40.0100.00315.08
7.3.30.0050.00514.66
7.3.20.0060.00616.84
7.3.10.0030.01216.84
7.3.00.0060.00316.70
7.2.260.0070.01315.28
7.2.250.0090.00915.09
7.2.240.0080.00615.34
7.2.230.0110.00715.04
7.2.220.0070.01115.09
7.2.210.0090.00015.34
7.2.200.0070.00315.38
7.2.190.0060.00615.29
7.2.180.0090.00615.09
7.2.170.0030.01014.80
7.2.160.0070.00715.09
7.2.150.0060.00917.06
7.2.140.0070.00717.11
7.2.130.0000.01316.94
7.2.120.0050.00817.07
7.2.110.0030.01016.97
7.2.100.0090.00416.80
7.2.90.0000.01316.89
7.2.80.0060.00917.09
7.2.70.0030.01016.90
7.2.60.0060.00317.11
7.2.50.0070.00717.19
7.2.40.0130.00317.02
7.2.30.0040.00817.09
7.2.20.0030.00917.11
7.2.10.0000.01417.11
7.2.00.0040.00718.34
7.1.330.0000.01115.99
7.1.320.0070.00415.91
7.1.310.0060.00616.03
7.1.300.0030.01015.82
7.1.290.0150.00015.93
7.1.280.0030.01015.66
7.1.270.0030.00615.85
7.1.260.0040.00816.00
7.1.250.0040.00415.70
7.1.240.0000.01216.00
7.1.230.0040.00815.76
7.1.220.0090.00315.74
7.1.210.0080.00416.09
7.1.200.0040.00415.85
7.1.190.0090.00016.03
7.1.180.0040.00816.12
7.1.170.0060.00615.78
7.1.160.0030.01016.08
7.1.150.0030.01215.91
7.1.140.0000.01315.70
7.1.130.0070.00315.83
7.1.120.0030.00915.52
7.1.110.0140.00016.01
7.1.100.0040.00715.94
7.1.90.0030.00616.07
7.1.80.0000.01116.14
7.1.70.0040.00916.54
7.1.60.0100.00817.79
7.1.50.0000.01216.46
7.1.40.0090.00015.84
7.1.30.0040.00416.06
7.1.20.0090.00615.80
7.1.10.0000.01315.70
7.1.00.0050.04019.11
7.0.330.0070.00715.38
7.0.320.0060.00415.52
7.0.310.0030.00515.13
7.0.300.0060.00315.18
7.0.290.0030.00615.64
7.0.280.0060.00915.26
7.0.270.0040.01115.56
7.0.260.0030.01215.59
7.0.250.0040.00915.71
7.0.240.0030.00615.63
7.0.230.0000.00815.63
7.0.220.0040.01115.63
7.0.210.0100.00315.53
7.0.200.0030.01216.25
7.0.190.0040.01115.64
7.0.180.0030.01015.54
7.0.170.0000.01215.64
7.0.160.0040.00415.37
7.0.150.0030.01015.63
7.0.140.0050.03718.72
7.0.130.0090.00615.59
7.0.120.0040.01215.18
7.0.110.0070.00715.68
7.0.100.0080.04717.75
7.0.90.0100.04117.66
7.0.80.0030.03017.71
7.0.70.0050.02717.72
7.0.60.0130.02717.80
7.0.50.0060.02917.95
7.0.40.0050.04016.70
7.0.30.0080.04516.69
7.0.20.0110.03016.92
7.0.10.0030.05016.86
7.0.00.0130.02816.78
5.6.400.0070.00714.41
5.6.390.0030.00714.68
5.6.380.0060.00614.59
5.6.370.0070.00314.59
5.6.360.0030.01014.50
5.6.350.0070.00714.23
5.6.340.0030.00714.52
5.6.330.0000.01414.11
5.6.320.0070.01114.79
5.6.310.0000.01414.82
5.6.300.0090.00614.42
5.6.290.0040.00714.38
5.6.280.0070.03717.85
5.6.270.0070.01014.83
5.6.260.0100.00714.73
5.6.250.0100.03817.70
5.6.240.0030.03317.66
5.6.230.0050.03917.55
5.6.220.0030.03217.70
5.6.210.0090.02517.59
5.6.200.0080.03417.69
5.6.190.0080.04417.72
5.6.180.0120.04317.93
5.6.170.0020.04617.75
5.6.160.0050.02717.85
5.6.150.0050.04717.72
5.6.140.0020.04717.69
5.6.130.0070.04017.83
5.6.120.0030.03817.88
5.6.110.0130.03817.77
5.6.100.0100.04517.79
5.6.90.0070.02817.56
5.6.80.0070.04417.54
5.6.70.0030.04717.44
5.6.60.0050.04717.36
5.6.50.0080.02617.35
5.6.40.0110.02417.28
5.6.30.0110.03017.26
5.6.20.0110.04117.43
5.6.10.0060.04317.29
5.6.00.0080.03817.46
5.5.380.0070.03017.45
5.5.370.0070.02917.55
5.5.360.0090.04417.43
5.5.350.0110.01717.52
5.5.340.0020.03417.57
5.5.330.0080.04117.70
5.5.320.0050.04717.78
5.5.310.0070.03217.65
5.5.300.0080.02017.72
5.5.290.0050.02517.71
5.5.280.0050.02517.75
5.5.270.0100.03717.58
5.5.260.0100.03017.58
5.5.250.0070.03017.60
5.5.240.0050.03317.45
5.5.230.0120.02517.35
5.5.220.0020.03117.30
5.5.210.0110.02117.34
5.5.200.0030.03117.22
5.5.190.0020.04817.33
5.5.180.0090.02717.40
5.5.170.0070.01014.50
5.5.160.0100.02617.35
5.5.150.0070.02717.39
5.5.140.0030.04617.37
5.5.130.0110.02217.16
5.5.120.0120.03917.27
5.5.110.0060.03317.37
5.5.100.0050.04417.13
5.5.90.0080.04217.32
5.5.80.0070.04217.02
5.5.70.0080.03917.33
5.5.60.0080.04517.41
5.5.50.0030.03217.23
5.5.40.0120.02017.35
5.5.30.0130.03317.29
5.5.20.0070.03817.24
5.5.10.0120.04017.26
5.5.00.0070.02717.22
5.4.450.0100.03815.42
5.4.440.0110.03515.48
5.4.430.0030.04715.42
5.4.420.0080.02315.17
5.4.410.0050.04315.15
5.4.400.0050.04215.03
5.4.390.0030.04315.19
5.4.380.0150.01715.09
5.4.370.0110.02015.14
5.4.360.0040.03814.98
5.4.350.0100.03815.28
5.4.340.0050.02915.28
5.4.330.0100.00411.47
5.4.320.0020.04615.04
5.4.310.0130.03215.26
5.4.300.0090.02715.10
5.4.290.0080.03714.99
5.4.280.0090.03815.13
5.4.270.0020.04215.24
5.4.260.0030.04615.06
5.4.250.0100.04415.22
5.4.240.0050.04215.19
5.4.230.0030.02815.03
5.4.220.0050.03715.07
5.4.210.0030.02315.13
5.4.200.0070.03815.13
5.4.190.0070.02415.20
5.4.180.0020.04515.31
5.4.170.0080.03614.94
5.4.160.0050.02715.13
5.4.150.0130.01715.24
5.4.140.0020.02513.91
5.4.130.0070.03813.77
5.4.120.0090.03513.84
5.4.110.0040.03613.91
5.4.100.0020.02713.86
5.4.90.0050.04013.78
5.4.80.0090.03513.93
5.4.70.0070.02813.92
5.4.60.0050.03713.97
5.4.50.0070.03813.91
5.4.40.0050.03713.97
5.4.30.0060.03813.95
5.4.20.0020.04313.88
5.4.10.0030.04313.85
5.4.00.0070.03713.58
5.3.290.0090.03812.88
5.3.280.0030.03112.69
5.3.270.0050.03012.81
5.3.260.0070.04212.74
5.3.250.0100.01812.81
5.3.240.0050.04312.81
5.3.230.0070.02512.85
5.3.220.0100.03612.69
5.3.210.0030.04412.58
5.3.200.0020.04912.63
5.3.190.0090.03112.70
5.3.180.0070.03512.64
5.3.170.0080.03812.81
5.3.160.0050.03812.80
5.3.150.0080.02212.83
5.3.140.0020.02812.59
5.3.130.0090.03712.55
5.3.120.0020.02712.54
5.3.110.0030.04512.52
5.3.100.0060.03812.31
5.3.90.0080.03812.50
5.3.80.0100.03512.44
5.3.70.0090.03312.29
5.3.60.0020.02912.41
5.3.50.0060.03812.36
5.3.40.0100.03712.21
5.3.30.0020.04112.42
5.3.20.0050.03912.05
5.3.10.0040.01912.08
5.3.00.0050.01812.09
5.2.170.0130.06011.63
5.2.160.0200.05011.63
5.2.150.0000.04311.63
5.2.140.0000.06011.63
5.2.130.0100.05711.63
5.2.120.0070.05711.63
5.2.110.0030.06311.63
5.2.100.0030.06311.63
5.2.90.0000.03711.63
5.2.80.0030.03311.63
5.2.70.0070.03311.63
5.2.60.0070.04711.63
5.2.50.0000.06011.63
5.2.40.0130.05011.63
5.2.30.0070.03311.63
5.2.20.0130.05011.63
5.2.10.0030.06011.63
5.2.00.0030.06711.63
5.1.60.0000.05311.63
5.1.50.0000.05711.63
5.1.40.0100.03311.63
5.1.30.0000.03011.63
5.1.20.0100.05011.63
5.1.10.0070.05311.63
5.1.00.0100.02711.63
5.0.50.0030.03711.63
5.0.40.0070.03011.63
5.0.30.0030.04311.63
5.0.20.0030.04011.63
5.0.10.0070.02011.63
5.0.00.0100.05711.63
4.4.90.0100.03011.63
4.4.80.0000.03311.63
4.4.70.0000.04311.63
4.4.60.0030.03711.63
4.4.50.0030.03311.63
4.4.40.0000.04711.63
4.4.30.0030.03711.63
4.4.20.0000.02711.63
4.4.10.0100.03011.63
4.4.00.0030.05311.63
4.3.110.0000.03311.63
4.3.100.0030.03311.63
4.3.90.0000.03011.63
4.3.80.0000.03711.63
4.3.70.0000.03311.63
4.3.60.0030.01311.63
4.3.50.0000.02011.63
4.3.40.0000.03311.63
4.3.30.0000.02011.63
4.3.20.0000.04011.63
4.3.10.0000.03311.63
4.3.00.0030.02711.63

preferences:
39.58 ms | 401 KiB | 5 Q