3v4l.org

run code in 300+ PHP versions simultaneously
<?php $now = new DateTimeImmutable('now', new DateTimeZone('UTC')); $nowString = $now->format('Y-m-d\TH:i:s.u'); $lockUntilString = $now->modify('+' . (string) 1000 . ' ms')->format('Y-m-d\TH:i:s.u'); print $lockUntilString;

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)
8.3.60.0060.00916.75
8.3.50.0130.00621.99
8.3.40.0150.00618.96
8.3.30.0070.00718.85
8.3.20.0000.00720.34
8.3.10.0040.00420.70
8.3.00.0050.00323.70
8.2.180.0070.00716.63
8.2.170.0130.00722.96
8.2.160.0100.00320.53
8.2.150.0000.00724.18
8.2.140.0000.00824.66
8.2.130.0090.00020.16
8.2.120.0040.00426.35
8.2.110.0030.00622.38
8.2.100.0000.01217.79
8.2.90.0000.00819.17
8.2.80.0040.00417.97
8.2.70.0030.00617.73
8.2.60.0080.00017.93
8.2.50.0020.00519.31
8.2.40.0050.00220.55
8.2.30.0040.00420.49
8.2.20.0040.00417.99
8.2.10.0000.00817.99
8.2.00.0030.00418.41
8.1.280.0130.00625.92
8.1.270.0050.00320.79
8.1.260.0060.00326.35
8.1.250.0050.00228.09
8.1.240.0030.00719.39
8.1.230.0070.00319.17
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0040.00417.61
8.1.190.0000.00817.11
8.1.180.0040.00418.10
8.1.170.0000.00818.75
8.1.160.0040.00418.93
8.1.150.0040.00420.25
8.1.140.0040.00419.61
8.1.130.0070.00020.84
8.1.120.0000.00817.58
8.1.110.0090.00017.66
8.1.100.0070.00017.61
8.1.90.0040.00417.63
8.1.80.0070.00017.64
8.1.70.0000.00717.54
8.1.60.0000.00817.66
8.1.50.0030.00717.61
8.1.40.0000.00817.59
8.1.30.0040.00417.60
8.1.20.0040.00417.66
8.1.10.0000.00717.58
8.1.00.0070.00317.29
8.0.300.0000.00918.77
8.0.290.0000.00716.88
8.0.280.0020.00518.50
8.0.270.0000.00717.23
8.0.260.0000.00817.23
8.0.250.0030.00317.22
8.0.240.0020.00517.22
8.0.230.0000.00717.08
8.0.220.0000.00717.11
8.0.210.0030.00317.03
8.0.200.0090.00017.17
8.0.190.0040.00417.23
8.0.180.0000.00717.17
8.0.170.0080.00017.17
8.0.160.0030.00317.14
8.0.150.0040.00717.05
8.0.140.0030.00317.08
8.0.130.0030.00313.55
8.0.120.0040.00417.08
8.0.110.0040.00417.00
8.0.100.0050.00317.17
8.0.90.0040.00416.99
8.0.80.0030.01317.09
8.0.70.0040.00417.09
8.0.60.0040.00416.95
8.0.50.0000.00717.01
8.0.30.0090.01017.18
8.0.20.0100.01117.40
8.0.10.0040.00417.06
8.0.00.0150.00616.93
7.4.330.0020.00215.55
7.4.320.0030.00316.63
7.4.300.0060.00016.57
7.4.290.0040.00416.70
7.4.280.0040.00416.54
7.4.270.0050.00216.66
7.4.260.0070.00216.54
7.4.250.0070.00016.46
7.4.240.0040.00316.49
7.4.230.0030.00316.75
7.4.220.0340.00916.74
7.4.210.0120.00416.71
7.4.200.0040.00416.39
7.4.160.0080.01016.36
7.4.150.0180.00617.40
7.4.140.0100.01017.86
7.4.130.0060.01116.66
7.4.120.0150.00616.59
7.4.110.0040.01516.54
7.4.100.0120.00616.68
7.4.90.0030.01316.47
7.4.80.0100.01019.39
7.4.70.0140.00316.50
7.4.60.0060.01016.42
7.4.50.0040.01116.78
7.4.40.0100.01016.73
7.4.30.0130.00316.59
7.4.00.0130.00315.19
7.3.330.0050.00013.29
7.3.320.0030.00313.25
7.3.310.0060.00016.57
7.3.300.0070.00016.49
7.3.290.0000.00716.53
7.3.280.0090.00916.51
7.3.270.0030.01417.40
7.3.260.0050.01216.61
7.3.250.0120.00816.39
7.3.240.0140.00816.64
7.3.230.0090.00916.55
7.3.210.0080.00816.68
7.3.200.0070.01016.68
7.3.190.0120.01116.62
7.3.180.0070.01016.63
7.3.170.0050.01116.39
7.3.160.0060.00916.61
7.2.330.0070.01016.77
7.2.320.0000.01716.75
7.2.310.0070.01016.82
7.2.300.0090.01216.72
7.2.290.0060.01016.95
7.2.60.0000.01217.18
7.1.200.0090.00616.00
7.1.70.0070.00317.15
7.1.60.0130.00616.81
7.1.50.0090.00916.79
7.1.30.0330.05038.32
7.1.20.0300.07038.30
7.1.10.0230.05322.18
7.1.00.0030.07022.27
7.0.200.0000.01216.59
7.0.170.0170.07721.91
7.0.160.0100.06321.85
7.0.150.0100.06021.89
7.0.140.0130.06721.92
7.0.130.0170.07021.86
7.0.120.0100.07321.86
7.0.110.0170.05721.86
7.0.100.0000.07721.69
7.0.90.0070.06321.98
7.0.80.0130.05321.97
7.0.70.0030.07021.83
7.0.60.0200.04321.75
7.0.50.0200.07021.98
7.0.40.0100.07721.79
7.0.30.0100.06021.88
7.0.20.0100.05721.81
7.0.10.0130.05721.89
7.0.00.0030.06021.84

preferences:
59.39 ms | 401 KiB | 5 Q