3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "test" . "\n"; $time = strtotime('11/28/1975'); echo $time . "\n"; $newformat = date('Y-m-d',$time); echo $newformat . "\n"; echo number_format(microtime(true)*1000,0,'.',''); $today = getdate("1975-11-28"); echo $today;

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.2.00.0000.01319.74
7.1.70.0030.00617.06
7.1.60.0100.01419.32
7.1.50.0060.00617.15
7.1.00.0030.07322.36
7.0.200.0030.00617.08
7.0.140.0030.07022.09
7.0.100.0470.05020.04
7.0.90.0370.05720.13
7.0.80.0130.07019.91
7.0.70.0100.08319.98
7.0.60.0430.08019.95
7.0.50.0400.08020.25
7.0.40.0070.07020.09
7.0.30.0070.07020.09
7.0.20.0030.04720.04
7.0.10.0130.07720.07
7.0.00.0070.06020.07
5.6.280.0000.07721.14
5.6.250.0070.05720.76
5.6.240.0130.08020.66
5.6.230.0130.06720.62
5.6.220.0130.07720.52
5.6.210.0130.05720.64
5.6.200.0070.05321.03
5.6.190.0070.08021.02
5.6.180.0100.04021.02
5.6.170.0000.04721.03
5.6.160.0100.07721.05
5.6.150.0030.08320.98
5.6.140.0100.07720.96
5.6.130.0030.09021.12
5.6.120.0070.08021.07
5.6.110.0170.05020.99
5.6.100.0100.08020.99
5.6.90.0100.06720.88
5.6.80.0070.08020.39
5.6.70.0030.05020.29
5.6.60.0070.08020.37
5.6.50.0070.08020.51
5.6.40.0030.05020.36
5.6.30.0070.06720.39
5.6.20.0070.05320.36
5.6.10.0170.07720.34
5.6.00.0130.06720.38
5.5.380.0030.07720.35
5.5.370.0100.08320.54
5.5.360.0200.04720.57
5.5.350.0000.08020.38
5.5.340.0130.07020.77
5.5.330.0030.08720.85
5.5.320.0070.07020.88
5.5.310.0000.04020.75
5.5.300.0070.07320.72
5.5.290.0030.08320.82
5.5.280.0130.07020.84
5.5.270.0100.07720.90
5.5.260.0100.04320.77
5.5.250.0070.08320.68
5.5.240.0070.07720.19
5.5.230.0030.07020.01
5.5.220.0030.08020.25
5.5.210.0030.09320.23
5.5.200.0100.04319.97
5.5.190.0170.06020.19
5.5.180.0070.05720.26
5.5.160.0100.04720.23
5.5.150.0030.04320.13
5.5.140.0070.04720.09
5.5.130.0070.04320.22
5.5.120.0130.07320.05
5.5.110.0000.05720.09
5.5.100.0000.04320.07
5.5.90.0070.04319.96
5.5.80.0270.02720.15
5.5.70.0130.07719.95
5.5.60.0100.07320.07
5.5.50.0100.07020.14
5.5.40.0100.03720.06
5.5.30.0070.04320.09
5.5.20.0070.04320.05
5.5.10.0170.07020.05
5.5.00.0100.04319.92
5.4.450.0030.05019.19
5.4.440.0070.07719.33
5.4.430.0100.04019.43
5.4.420.0100.07719.41
5.4.410.0130.07319.01
5.4.400.0070.06019.11
5.4.390.0100.04319.01
5.4.380.0030.08019.11
5.4.370.0030.07719.16
5.4.360.0070.05019.14
5.4.350.0130.06719.07
5.4.340.0030.07319.16
5.4.320.0170.07019.29
5.4.310.0030.04319.14
5.4.300.0030.07719.15
5.4.290.0100.04018.84
5.4.280.0070.04019.20
5.4.270.0070.08319.10
5.4.260.0100.05718.87
5.4.250.0070.07718.86
5.4.240.0100.04719.00
5.4.230.0100.07719.05
5.4.220.0100.04019.02
5.4.210.0070.08019.02
5.4.200.0000.07719.30
5.4.190.0100.06318.96
5.4.180.0070.05719.17
5.4.170.0100.07018.95
5.4.160.0100.07018.94
5.4.150.0170.06719.00
5.4.140.0170.03316.34
5.4.130.0070.07716.26
5.4.120.0070.06716.12
5.4.110.0100.04016.46
5.4.100.0070.07316.45
5.4.90.0030.07716.40
5.4.80.0130.06716.41
5.4.70.0030.05316.31
5.4.60.0130.03716.35
5.4.50.0000.06316.25
5.4.40.0130.06716.43
5.4.30.0030.03716.40
5.4.20.0070.07716.29
5.4.10.0070.04016.41
5.4.00.0100.05015.82
5.3.290.0100.06714.62
5.3.280.0000.06014.51
5.3.270.0100.04714.48
5.3.260.0070.07714.56
5.3.250.0100.04014.50
5.3.240.0030.08314.60
5.3.230.0100.04714.55
5.3.220.0070.06714.63
5.3.210.0130.07714.45
5.3.200.0100.07014.50
5.3.190.0070.04314.57
5.3.180.0000.08314.53
5.3.170.0130.06314.48
5.3.160.0000.07014.51
5.3.150.0030.07014.50
5.3.140.0100.04014.48
5.3.130.0100.05014.43
5.3.120.0100.03314.47
5.3.110.0000.08014.53
5.3.100.0070.08314.04
5.3.90.0000.06713.91
5.3.80.0070.07013.95
5.3.70.0000.07714.00
5.3.60.0130.05313.75
5.3.50.0100.07013.93
5.3.40.0100.04013.79
5.3.30.0070.04013.89
5.3.20.0030.07313.60
5.3.10.0030.06313.60
5.3.00.0030.04713.63
5.2.170.0070.04311.30
5.2.160.0070.06711.39
5.2.150.0100.05311.23
5.2.140.0070.04711.22
5.2.130.0070.04711.08
5.2.120.0000.04311.17
5.2.110.0030.05311.26
5.2.100.0100.02711.27
5.2.90.0000.03711.13
5.2.80.0000.05311.17
5.2.70.0070.06011.17
5.2.60.0070.03311.23
5.2.50.0070.03011.17
5.2.40.0070.03011.11
5.2.30.0070.05711.09
5.2.20.0130.04311.12
5.2.10.0070.04011.00
5.2.00.0030.05010.75
5.1.60.0000.03310.13
5.1.50.0030.03010.23
5.1.40.0070.02310.23
5.1.30.0070.04710.47
5.1.20.0030.05010.59
5.1.10.0070.04710.09
5.1.00.0070.03310.18
5.0.50.0100.0438.78
5.0.40.0070.0378.64
5.0.30.0030.0338.43
5.0.20.0030.0378.46
5.0.10.0070.0338.23
5.0.00.0000.0438.40
4.4.90.0000.0276.88
4.4.80.0100.0236.88
4.4.70.0000.0376.88
4.4.60.0030.0336.88
4.4.50.0070.0206.88
4.4.40.0030.0406.88
4.4.30.0000.0176.88
4.4.20.0070.0236.88
4.4.10.0100.0306.88
4.4.00.0070.0476.88
4.3.110.0070.0276.88
4.3.100.0000.0236.88
4.3.90.0030.0276.88
4.3.80.0000.0536.88
4.3.70.0000.0306.88
4.3.60.0000.0336.88
4.3.50.0030.0236.88
4.3.40.0030.0306.88
4.3.30.0000.0376.88
4.3.20.0070.0306.88
4.3.10.0100.0236.88
4.3.00.0000.0336.88

preferences:
35.87 ms | 401 KiB | 5 Q