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", $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 \t $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.0060.00916.40
7.4.00.0090.00816.08
7.3.130.0040.01516.77
7.3.120.0090.00915.83
7.3.110.0100.00615.67
7.3.100.0060.01115.80
7.3.90.0050.01015.81
7.3.80.0070.00915.61
7.3.70.0050.01015.68
7.3.60.0070.00815.67
7.3.50.0060.00915.54
7.3.40.0080.00515.75
7.3.30.0090.00615.65
7.3.20.0100.00417.50
7.3.10.0070.00617.32
7.3.00.0070.00717.51
7.2.260.0150.00416.92
7.2.250.0090.00816.17
7.2.240.0100.00516.01
7.2.230.0060.01215.71
7.2.220.0150.00315.83
7.2.210.0100.00315.74
7.2.200.0030.01216.06
7.2.190.0020.01215.88
7.2.180.0020.01115.92
7.2.170.0050.00815.85
7.2.160.0130.00016.75
7.2.150.0130.00618.64
7.2.140.0000.01018.45
7.2.130.0030.01018.54
7.2.120.0090.00318.56
7.2.110.0100.00318.50
7.2.100.0060.00318.57
7.2.90.0040.01118.66
7.2.80.0070.00718.51
7.2.70.0090.00918.63
7.2.60.0100.00618.52
7.2.50.0070.00418.51
7.2.40.0070.00718.60
7.2.30.0050.00918.67
7.2.20.0060.00818.54
7.2.10.0100.00318.48
7.2.00.0070.00919.21
7.1.330.0040.00816.84
7.1.320.0040.00916.67
7.1.310.0020.01416.91
7.1.300.0060.00616.75
7.1.290.0080.00716.75
7.1.280.0030.01116.62
7.1.270.0050.00916.74
7.1.260.0050.00716.64
7.1.250.0030.01017.48
7.1.240.0000.01117.53
7.1.230.0040.00417.47
7.1.220.0030.01017.63
7.1.210.0080.00817.55
7.1.200.0030.01217.56
7.1.190.0120.00317.30
7.1.180.0060.00617.54
7.1.170.0000.01317.39
7.1.160.0060.00917.61
7.1.150.0080.00417.67
7.1.140.0040.00817.49
7.1.130.0000.01217.47
7.1.120.0070.00717.52
7.1.110.0080.00617.52
7.1.100.0040.00817.48
7.1.90.0090.00417.50
7.1.80.0130.00017.35
7.1.70.0060.00517.54
7.1.60.0090.01018.24
7.1.50.0020.01617.36
7.1.40.0090.00017.68
7.1.30.0040.00717.43
7.1.20.0040.00817.54
7.1.10.0000.01117.67
7.1.00.0070.03919.91
7.0.330.0070.00417.17
7.0.320.0030.01017.08
7.0.310.0090.00917.18
7.0.300.0000.01217.09
7.0.290.0040.00817.05
7.0.280.0060.00616.94
7.0.270.0040.00817.08
7.0.260.0080.00417.25
7.0.250.0060.00617.05
7.0.240.0040.00817.20
7.0.230.0060.00617.40
7.0.220.0040.00817.04
7.0.210.0030.00617.41
7.0.200.0070.00717.06
7.0.190.0080.00017.30
7.0.180.0000.00917.16
7.0.170.0040.00717.08
7.0.160.0040.00717.06
7.0.150.0000.01217.16
7.0.140.0020.03719.73
7.0.130.0030.00617.22
7.0.120.0040.01117.25
7.0.110.0000.01417.25
7.0.100.0090.00317.34
7.0.90.0060.02819.42
7.0.80.0070.02619.35
7.0.70.0080.03919.38
7.0.60.0030.04619.46
7.0.50.0070.02619.56
7.0.40.0050.01817.59
7.0.30.0020.03517.55
7.0.20.0030.02817.61
7.0.10.0120.01817.48
7.0.00.0070.02417.58
5.6.400.0110.00416.00
5.6.390.0040.00816.25
5.6.380.0060.00316.24
5.6.370.0070.01016.21
5.6.360.0000.01215.95
5.6.350.0050.00816.23
5.6.340.0080.00416.40
5.6.330.0030.01016.04
5.6.320.0070.00716.31
5.6.310.0030.01016.09
5.6.300.0070.01016.24
5.6.290.0000.01216.20
5.6.280.0070.03718.55
5.6.270.0000.01316.21
5.6.260.0040.00716.38
5.6.250.0030.00716.33
5.6.240.0060.03818.17
5.6.230.0030.04318.26
5.6.220.0070.04118.34
5.6.210.0060.02518.33
5.6.200.0050.04718.73
5.6.190.0010.05118.49
5.6.180.0090.02718.67
5.6.170.0050.02718.49
5.6.160.0030.02818.68
5.6.150.0040.02818.48
5.6.140.0070.03718.45
5.6.130.0080.02318.55
5.6.120.0080.03518.60
5.6.110.0060.04318.64
5.6.100.0080.03418.61
5.6.90.0070.04318.57
5.6.80.0080.03818.25
5.6.70.0040.02618.09
5.6.60.0030.02818.11
5.6.50.0060.02218.11
5.6.40.0030.02818.12
5.6.30.0090.03618.21
5.6.20.0080.04318.30
5.6.10.0070.04218.20
5.6.00.0130.03718.16
5.5.380.0040.04618.04
5.5.370.0040.02518.15
5.5.360.0050.04518.14
5.5.350.0080.02518.19
5.5.340.0030.04218.41
5.5.330.0010.02618.53
5.5.320.0070.02718.30
5.5.310.0050.02718.41
5.5.300.0000.04118.41
5.5.290.0060.02918.50
5.5.280.0020.04618.28
5.5.270.0060.04318.48
5.5.260.0030.04418.44
5.5.250.0080.04218.29
5.5.240.0030.02617.99
5.5.230.0080.04018.05
5.5.220.0050.03218.13
5.5.210.0050.02818.19
5.5.200.0050.04018.05
5.5.190.0050.04318.16
5.5.180.0080.03818.11
5.5.170.0100.00715.80
5.5.160.0020.04717.97
5.5.150.0100.04017.99
5.5.140.0080.04318.15
5.5.130.0100.03818.08
5.5.120.0050.02917.96
5.5.110.0050.02917.84
5.5.100.0020.02718.11
5.5.90.0110.02817.91
5.5.80.0070.03817.96
5.5.70.0050.04117.90
5.5.60.0080.04118.04
5.5.50.0060.03318.04
5.5.40.0050.04317.93
5.5.30.0020.03518.02
5.5.20.0030.04518.10
5.5.10.0090.04018.04
5.5.00.0030.04517.87
5.4.450.0040.02916.17
5.4.440.0020.04616.04
5.4.430.0020.03215.99
5.4.420.0070.02616.07
5.4.410.0060.03015.93
5.4.400.0050.03816.05
5.4.390.0070.03915.81
5.4.380.0030.04516.05
5.4.370.0030.02316.03
5.4.360.0030.04815.81
5.4.350.0050.02415.80
5.4.340.0050.04115.94
5.4.330.0030.01212.76
5.4.320.0020.03915.96
5.4.310.0060.04215.90
5.4.300.0070.03715.90
5.4.290.0030.04316.05
5.4.280.0030.04115.84
5.4.270.0050.04315.91
5.4.260.0020.04115.93
5.4.250.0050.04015.83
5.4.240.0040.04615.93
5.4.230.0050.04415.93
5.4.220.0060.04915.88
5.4.210.0120.03615.96
5.4.200.0060.03216.02
5.4.190.0060.03716.03
5.4.180.0020.04015.93
5.4.170.0050.04016.04
5.4.160.0030.04415.98
5.4.150.0100.02015.88
5.4.140.0060.03914.58
5.4.130.0030.02514.64
5.4.120.0070.01914.74
5.4.110.0030.03314.84
5.4.100.0030.04314.66
5.4.90.0070.03814.62
5.4.80.0050.04114.72
5.4.70.0050.03214.62
5.4.60.0020.04114.76
5.4.50.0030.03714.63
5.4.40.0030.03914.75
5.4.30.0060.01914.75
5.4.20.0080.03914.61
5.4.10.0060.04014.55
5.4.00.0040.02614.34
5.3.290.0050.03214.10
5.3.280.0030.04913.93
5.3.270.0080.03114.09
5.3.260.0060.04514.09
5.3.250.0080.04014.05
5.3.240.0060.04314.00
5.3.230.0030.04614.06
5.3.220.0030.03213.89
5.3.210.0100.02613.92
5.3.200.0070.04213.97
5.3.190.0050.03113.91
5.3.180.0070.03414.09
5.3.170.0070.03713.94
5.3.160.0080.02813.92
5.3.150.0080.02014.03
5.3.140.0040.03713.89
5.3.130.0060.04113.92
5.3.120.0050.03113.94
5.3.110.0060.02713.82
5.3.100.0050.04213.63
5.3.90.0040.04213.60
5.3.80.0020.04013.53
5.3.70.0080.03013.65
5.3.60.0060.03513.80
5.3.50.0050.04513.59
5.3.40.0070.03313.58
5.3.30.0020.04213.65
5.3.20.0080.03713.39
5.3.10.0070.02413.18
5.3.00.0080.02513.21
5.2.170.0030.06011.29
5.2.160.0000.06311.31
5.2.150.0000.05311.38
5.2.140.0000.03711.24
5.2.130.0030.05011.33
5.2.120.0030.04311.23
5.2.110.0030.02311.29
5.2.100.0000.05711.20
5.2.90.0000.02311.24
5.2.80.0000.06311.16
5.2.70.0030.03311.12
5.2.60.0000.05711.18
5.2.50.0000.06011.08
5.2.40.0000.03711.11
5.2.30.0000.05311.20
5.2.20.0030.05311.22
5.2.10.0030.03311.12
5.2.00.0000.03710.86
5.1.60.0030.05310.04
5.1.50.0000.02010.26
5.1.40.0000.02010.23
5.1.30.0030.03710.41
5.1.20.0030.02710.42
5.1.10.0030.02310.36
5.1.00.0030.02710.12
5.0.50.0000.0378.84
5.0.40.0000.0408.45
5.0.30.0000.0408.52
5.0.20.0000.0478.34
5.0.10.0030.0308.39
5.0.00.0000.0608.36
4.4.90.0000.0178.32
4.4.80.0000.0308.32
4.4.70.0030.0408.32
4.4.60.0030.0238.32
4.4.50.0030.0278.32
4.4.40.0000.0338.32
4.4.30.0000.0378.32
4.4.20.0000.0138.32
4.4.10.0030.0308.32
4.4.00.0000.0378.32
4.3.110.0000.0138.32
4.3.100.0000.0178.32
4.3.90.0000.0278.32
4.3.80.0030.0208.32
4.3.70.0000.0278.32
4.3.60.0030.0308.32
4.3.50.0000.0278.32
4.3.40.0030.0438.32
4.3.30.0000.0238.32
4.3.20.0000.0378.32
4.3.10.0000.0138.32
4.3.00.0000.0338.32

preferences:
39.41 ms | 401 KiB | 5 Q