3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = [ (new DateTimeImmutable())->format('c.u'), (new DateTimeImmutable())->modify('next day')->format('c.u'), (new DateTimeImmutable())->modify('tomorrow')->format('c.u'), (new DateTimeImmutable())->modify('next day')->modify('next day')->format('c.u'), (new DateTimeImmutable())->modify('tomorrow')->modify('tomorrow')->format('c.u'), ]; var_dump(...$d);

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.01816.63
8.3.50.0110.00416.50
8.3.40.0150.00018.82
8.3.30.0140.00018.88
8.3.20.0070.00020.39
8.3.10.0090.00021.85
8.3.00.0000.00821.92
8.2.180.0000.01716.75
8.2.170.0000.01422.96
8.2.160.0100.00719.17
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0080.00021.02
8.2.120.0080.00026.35
8.2.110.0090.00022.38
8.2.100.0080.00418.03
8.2.90.0040.00419.40
8.2.80.0040.00418.03
8.2.70.0000.00817.75
8.2.60.0030.00618.05
8.2.50.0060.00318.10
8.2.40.0040.00420.63
8.2.30.0040.00421.23
8.2.20.0040.00418.20
8.2.10.0000.00718.26
8.2.00.0000.00718.24
8.1.280.0090.00925.92
8.1.270.0000.00823.84
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00323.98
8.1.230.0030.00919.09
8.1.220.0030.00517.74
8.1.210.0080.00018.77
8.1.200.0050.00517.73
8.1.190.0070.00417.47
8.1.180.0080.00018.10
8.1.170.0000.00818.71
8.1.160.0040.00419.03
8.1.150.0040.00420.78
8.1.140.0040.00419.72
8.1.130.0040.00419.07
8.1.120.0030.00617.63
8.1.110.0040.00417.66
8.1.100.0040.00417.69
8.1.90.0080.00017.78
8.1.80.0040.00417.71
8.1.70.0030.00317.64
8.1.60.0030.00617.79
8.1.50.0040.00417.61
8.1.40.0000.00817.72
8.1.30.0000.00717.77
8.1.20.0040.00417.83
8.1.10.0030.00517.82
8.1.00.0040.00417.80
8.0.300.0000.00719.73
8.0.290.0050.00217.00
8.0.280.0050.00318.64
8.0.270.0040.00417.40
8.0.260.0030.00317.13
8.0.250.0070.00017.12
8.0.240.0030.00317.07
8.0.230.0020.00517.11
8.0.220.0000.00717.18
8.0.210.0040.00417.05
8.0.200.0030.00317.21
8.0.190.0040.00417.18
8.0.180.0040.00417.19
8.0.170.0040.00417.11
8.0.160.0050.00616.99
8.0.150.0000.00817.10
8.0.140.0000.00816.98
8.0.130.0030.00613.53
8.0.120.0040.00417.02
8.0.110.0070.00017.02
8.0.100.0040.00417.27
8.0.90.0070.00017.11
8.0.80.0110.01217.05
8.0.70.0000.00717.15
8.0.60.0030.00517.21
8.0.50.0000.00717.20
8.0.30.0080.01217.23
8.0.20.0100.00917.40
8.0.10.0050.00517.14
8.0.00.0120.00616.86
7.4.330.0030.00315.55
7.4.320.0000.00716.58
7.4.300.0060.00316.70
7.4.290.0000.00716.77
7.4.280.0040.00416.84
7.4.270.0000.00716.68
7.4.260.0000.00716.79
7.4.250.0030.00316.76
7.4.240.0050.00216.77
7.4.230.0030.00316.83
7.4.220.0000.01916.75
7.4.210.0040.01116.73
7.4.200.0050.00216.51
7.4.160.0120.00416.71
7.4.150.0110.00617.40
7.4.140.0110.00717.86
7.4.130.0100.00716.81
7.4.120.0140.00816.73
7.4.110.0120.00916.74
7.4.100.0100.00616.65
7.4.90.0000.01716.64
7.4.80.0130.00919.39
7.4.70.0110.01116.80
7.4.60.0030.01316.75
7.4.50.0100.00516.68
7.4.40.0060.01516.59
7.4.30.0130.00316.65
7.4.00.0060.00915.20
7.3.330.0000.00513.38
7.3.320.0030.00313.29
7.3.310.0000.00716.25
7.3.300.0030.00316.32
7.3.290.0070.00816.38
7.3.280.0090.00816.42
7.3.270.0080.00817.40
7.3.260.0160.00316.54
7.3.250.0130.00716.55
7.3.240.0090.00916.47
7.3.230.0090.00916.55
7.3.210.0060.01016.44
7.3.200.0060.01116.49
7.3.190.0070.01416.58
7.3.180.0090.00916.68
7.3.170.0130.00316.35
7.3.160.0150.00816.36
7.2.330.0090.00916.80
7.2.320.0100.00616.77
7.2.310.0120.00416.91
7.2.300.0060.01516.96
7.2.290.0130.00316.86
7.2.60.0040.00816.91
7.2.00.0060.00919.48
7.1.200.0070.00315.98
7.1.100.0070.00718.16
7.1.70.0070.00817.26
7.1.60.0320.01335.11
7.1.50.0410.00335.00
7.1.40.0230.00734.26
7.1.30.0280.00334.57
7.1.20.0240.00634.85
7.1.10.0060.01016.75
7.1.00.0070.01216.84
7.0.200.0080.00716.95
7.0.190.0070.01316.64
7.0.180.0070.01416.51
7.0.170.0090.00616.40
7.0.160.0040.01416.41
7.0.150.0090.00616.21
7.0.140.0000.01716.30
7.0.130.0030.01516.44
7.0.120.0030.01816.39
7.0.110.0060.01016.29
7.0.100.0060.00916.21
7.0.90.0090.00616.24
7.0.80.0130.00716.27
7.0.70.0150.00616.34
7.0.60.0140.00716.31
7.0.50.0090.00916.39
7.0.40.0060.01616.44
7.0.30.0030.01516.39
7.0.20.0120.00816.54
7.0.10.0080.01216.46
7.0.00.0050.01516.43

preferences:
44.62 ms | 401 KiB | 5 Q