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 --- $now ($nowtime): --- min year ($minYear) --- max year ($maxYear)\n"; } function shortenb64($id, $alphabet='-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz') { $base = strlen($alphabet); $short = ''; while($id) { $id = round(($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.0060.01214.64
7.4.00.0090.00315.21
7.3.130.0170.00015.26
7.3.120.0100.01015.01
7.3.110.0100.00615.13
7.3.100.0110.00714.84
7.3.90.0030.00715.21
7.3.80.0000.01315.11
7.3.70.0060.00615.05
7.3.60.0120.00314.89
7.3.50.0060.00315.14
7.3.40.0070.00715.02
7.3.30.0000.00915.07
7.3.20.0040.01116.62
7.3.10.0030.01016.87
7.3.00.0030.01016.96
7.2.260.0100.01315.07
7.2.250.0070.01315.26
7.2.240.0060.01015.09
7.2.230.0090.00615.09
7.2.220.0070.00715.02
7.2.210.0030.00615.17
7.2.200.0000.01615.18
7.2.190.0030.01215.20
7.2.180.0030.00715.20
7.2.170.0060.01014.95
7.2.160.0100.00715.40
7.2.150.0130.00317.20
7.2.140.0070.00416.95
7.2.130.0060.01217.14
7.2.120.0070.00716.95
7.2.110.0070.00716.86
7.2.100.0000.01417.08
7.2.90.0060.01316.87
7.2.80.0070.01117.10
7.2.70.0090.00617.24
7.2.60.0000.01217.06
7.2.50.0120.00317.15
7.2.40.0060.00916.98
7.2.30.0060.00916.93
7.2.20.0070.00716.85
7.2.10.0090.00617.13
7.2.00.0090.00918.25
7.1.330.0070.01016.10
7.1.320.0090.00316.15
7.1.310.0090.00615.92
7.1.300.0060.00915.76
7.1.290.0040.01116.05
7.1.280.0130.00015.96
7.1.270.0070.00716.04
7.1.260.0040.01115.91
7.1.250.0070.00716.10
7.1.240.0070.00716.02
7.1.230.0030.01215.80
7.1.220.0030.01115.95
7.1.210.0100.00716.11
7.1.200.0060.01216.02
7.1.190.0070.00716.04
7.1.180.0100.00316.18
7.1.170.0090.00015.80
7.1.160.0040.01216.16
7.1.150.0040.01115.84
7.1.140.0090.00615.88
7.1.130.0060.00615.64
7.1.120.0090.00615.93
7.1.110.0040.00816.13
7.1.100.0090.00616.05
7.1.90.0030.01216.02
7.1.80.0040.00415.79
7.1.70.0010.01016.54
7.1.60.0100.01017.63
7.1.50.0050.01216.54
7.1.40.0040.01116.03
7.1.30.0070.00716.13
7.1.20.0060.00815.80
7.1.10.0060.00615.73
7.1.00.0070.02019.23
7.0.330.0040.00815.38
7.0.320.0030.00715.60
7.0.310.0040.01115.71
7.0.300.0090.00315.56
7.0.290.0030.01015.72
7.0.280.0100.00715.32
7.0.270.0000.01315.73
7.0.260.0120.00615.69
7.0.250.0080.00415.50
7.0.240.0060.00615.43
7.0.230.0070.00715.88
7.0.220.0060.00315.49
7.0.210.0030.00915.86
7.0.200.0040.00716.33
7.0.190.0070.00715.52
7.0.180.0000.00915.67
7.0.170.0060.00615.58
7.0.160.0050.00515.80
7.0.150.0030.00715.71
7.0.140.0030.04118.74
7.0.130.0030.00615.68
7.0.120.0080.00415.28
7.0.110.0000.01215.79
7.0.100.0070.00415.66
7.0.90.0080.00315.54
7.0.80.0050.02817.88
7.0.70.0180.04917.85
7.0.60.0030.03317.93
7.0.50.0310.03817.96
7.0.40.0110.04317.02
7.0.30.0020.03116.91
7.0.20.0090.03717.00
7.0.10.0080.03617.01
7.0.00.0060.03716.98
5.6.400.0040.01114.89
5.6.390.0030.00714.90
5.6.380.0060.00914.76
5.6.370.0090.00614.54
5.6.360.0030.00714.59
5.6.350.0040.01414.84
5.6.340.0030.00914.61
5.6.330.0030.01314.35
5.6.320.0080.00414.78
5.6.310.0100.00614.41
5.6.300.0070.01014.74
5.6.290.0030.01314.60
5.6.280.0050.04117.99
5.6.270.0000.00914.54
5.6.260.0030.01014.68
5.6.250.0110.00014.25
5.6.240.0000.00914.68
5.6.230.0070.02817.78
5.6.220.0070.03417.67
5.6.210.0050.03017.62
5.6.200.0080.03917.87
5.6.190.0060.02918.01
5.6.180.0070.04017.95
5.6.170.0080.04317.76
5.6.160.0070.03917.87
5.6.150.0130.03517.96
5.6.140.0030.03417.86
5.6.130.0130.03518.03
5.6.120.0050.04517.98
5.6.110.0080.04417.81
5.6.100.0110.03617.94
5.6.90.0110.02317.91
5.6.80.0060.02617.56
5.6.70.0070.03817.50
5.6.60.0040.04217.49
5.6.50.0050.04317.54
5.6.40.0080.03517.62
5.6.30.0110.03717.68
5.6.20.0080.02417.66
5.6.10.0130.03517.52
5.6.00.0030.02517.70
5.5.380.0030.00514.19
5.5.370.0090.04317.61
5.5.360.0060.04417.55
5.5.350.0030.03017.67
5.5.340.0030.05517.63
5.5.330.0060.02817.87
5.5.320.0100.03017.75
5.5.310.0080.04017.61
5.5.300.0060.04317.61
5.5.290.0110.04117.64
5.5.280.0100.03317.54
5.5.270.0050.03317.88
5.5.260.0110.03317.78
5.5.250.0100.02517.73
5.5.240.0070.04017.49
5.5.230.0050.05217.56
5.5.220.0070.04417.43
5.5.210.0090.03717.33
5.5.200.0050.04717.35
5.5.190.0070.04417.46
5.5.180.0080.03017.38
5.5.170.0090.00614.38
5.5.160.0090.03117.51
5.5.150.0030.04217.40
5.5.140.0070.04017.27
5.5.130.0070.04217.52
5.5.120.0070.04417.48
5.5.110.0030.04017.21
5.5.100.0030.04217.38
5.5.90.0050.04417.35
5.5.80.0050.04517.46
5.5.70.0080.03817.49
5.5.60.0050.04517.34
5.5.50.0170.03317.28
5.5.40.0110.03717.36
5.5.30.0080.03117.55
5.5.20.0120.03717.17
5.5.10.0090.04217.42
5.5.00.0080.02217.29
5.4.450.0070.02515.90
5.4.440.0030.02516.01
5.4.430.0050.02315.98
5.4.420.0050.03815.93
5.4.410.0080.04115.82
5.4.400.0050.03715.85
5.4.390.0030.04615.79
5.4.380.0050.04315.82
5.4.370.0050.04015.80
5.4.360.0050.04115.86
5.4.350.0100.03315.71
5.4.340.0080.02315.75
5.4.330.0000.01112.38
5.4.320.0060.04115.82
5.4.310.0080.03815.84
5.4.300.0110.03715.72
5.4.290.0130.03515.75
5.4.280.0020.04015.74
5.4.270.0060.02315.82
5.4.260.0060.03715.84
5.4.250.0090.01915.69
5.4.240.0050.04215.87
5.4.230.0090.04015.76
5.4.220.0040.02415.85
5.4.210.0090.03715.82
5.4.200.0080.03715.79
5.4.190.0070.03715.79
5.4.180.0060.02715.83
5.4.170.0050.03115.81
5.4.160.0070.04315.76
5.4.150.0050.02315.71
5.4.140.0060.04114.52
5.4.130.0030.04314.51
5.4.120.0080.04314.52
5.4.110.0020.02414.51
5.4.100.0070.02014.51
5.4.90.0050.02214.56
5.4.80.0020.02414.46
5.4.70.0060.02114.47
5.4.60.0060.02114.48
5.4.50.0020.02514.47
5.4.40.0030.02214.44
5.4.30.0000.02414.51
5.4.20.0030.02214.50
5.4.10.0030.02214.50
5.4.00.0030.01814.20
5.3.290.0050.04213.65
5.3.280.0120.01713.63
5.3.270.0120.03813.62
5.3.260.0090.04113.61
5.3.250.0020.02713.58
5.3.240.0020.02513.62
5.3.230.0040.04113.54
5.3.220.0060.02113.54
5.3.210.0080.02713.55
5.3.200.0040.02813.59
5.3.190.0070.02013.54
5.3.180.0050.02413.60
5.3.170.0030.02113.56
5.3.160.0000.02513.55
5.3.150.0020.02313.55
5.3.140.0030.02213.54
5.3.130.0060.01313.59
5.3.120.0030.01813.52
5.3.110.0050.02113.59
5.3.100.0020.01913.30
5.3.90.0060.02013.28
5.3.80.0030.02813.32
5.3.70.0020.02313.32
5.3.60.0060.01813.30
5.3.50.0030.02313.28
5.3.40.0020.02113.29
5.3.30.0000.02613.25
5.3.20.0040.01713.08
5.3.10.0020.01813.14
5.3.00.0050.03213.13
5.2.170.0000.03011.26
5.2.160.0070.02311.48
5.2.150.0000.02711.39
5.2.140.0030.03011.48
5.2.130.0100.01711.13
5.2.120.0030.02311.13
5.2.110.0070.02711.20
5.2.100.0100.02711.21
5.2.90.0000.03711.36
5.2.80.0070.02311.20
5.2.70.0030.02311.36
5.2.60.0030.02311.30
5.2.50.0030.03311.29
5.2.40.0030.02711.16
5.2.30.0030.04011.09
5.2.20.0030.05311.10
5.2.10.0000.03010.98
5.2.00.0000.03010.83
5.1.60.0000.02710.29
5.1.50.0000.02310.04
5.1.40.0000.02310.21
5.1.30.0070.03010.43
5.1.20.0000.02310.42
5.1.10.0000.02710.27
5.1.00.0070.01710.11
5.0.50.0070.0178.83
5.0.40.0000.0208.66
5.0.30.0000.0378.28
5.0.20.0000.0238.34
5.0.10.0000.0208.38
5.0.00.0030.0308.41
4.4.90.0000.0137.27
4.4.80.0000.0277.27
4.4.70.0000.0237.27
4.4.60.0000.0137.27
4.4.50.0000.0177.27
4.4.40.0000.0207.27
4.4.30.0030.0137.27
4.4.20.0030.0137.27
4.4.10.0030.0137.27
4.4.00.0030.0237.27
4.3.110.0030.0137.27
4.3.100.0000.0137.27
4.3.90.0000.0177.27
4.3.80.0000.0307.27
4.3.70.0000.0137.27
4.3.60.0030.0107.27
4.3.50.0000.0177.27
4.3.40.0000.0237.27
4.3.30.0000.0177.27
4.3.20.0000.0177.27
4.3.10.0030.0137.27
4.3.00.0000.0377.27

preferences:
42.05 ms | 401 KiB | 5 Q