3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i = 0; $i < 1000000; $i++) { $d1 = new DateTime("5 minutes ago"); $d2 = new DateTime("5 minutes ago"); if ($d1 != $d2) { echo "gotcha: {$d1->format("Y-m-d H:i:s")} vs {$d2->format("Y-m-d H:i:s")}\n"; } }

Abusive script

This script was stopped while abusing our resources

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.110.0070.00720.94
8.3.100.0000.01124.06
8.3.90.0100.01326.77
8.3.80.0150.00317.97
8.3.70.0090.01618.56
8.3.60.0060.01616.61
8.3.50.0110.01522.12
8.3.40.0140.00718.84
8.3.30.0110.01118.83
8.3.20.0030.00718.69
8.3.10.0030.00623.48
8.3.00.0040.00721.89
8.2.230.0060.00622.58
8.2.220.0050.00537.54
8.2.210.0100.01026.77
8.2.200.0100.00318.66
8.2.190.0100.01716.88
8.2.180.0110.01116.88
8.2.170.0060.01622.96
8.2.160.0130.00722.27
8.2.150.0030.00725.66
8.2.140.0030.00724.66
8.2.130.0000.01119.95
8.2.120.0070.00426.35
8.2.110.0130.00020.55
8.2.100.0100.00618.28
8.2.90.0100.00318.33
8.2.80.0040.00818.05
8.2.70.0040.00818.05
8.2.60.0070.00418.16
8.2.50.0070.00718.10
8.2.40.0040.00822.36
8.2.30.0030.00921.28
8.2.20.0000.01218.17
8.2.10.0060.00718.32
8.2.00.0030.01018.00
8.1.290.0030.00930.84
8.1.280.0090.01325.92
8.1.270.0030.00722.18
8.1.260.0070.00328.09
8.1.250.0050.00528.09
8.1.240.0030.01020.60
8.1.230.0110.01120.86
8.1.220.0030.00917.89
8.1.210.0030.00918.89
8.1.200.0000.01317.48
8.1.190.0100.00317.36
8.1.180.0060.00618.10
8.1.170.0000.01118.66
8.1.160.0040.00723.99
8.1.150.0090.00322.09
8.1.140.0040.00819.80
8.1.130.0000.01117.93
8.1.120.0070.00717.76
8.1.110.0130.00017.73
8.1.100.0060.00617.71
8.1.90.0030.01017.60
8.1.80.0060.00617.66
8.1.70.0070.00717.67
8.1.60.0030.01017.89
8.1.50.0080.00417.74
8.1.40.0060.00617.79
8.1.30.0030.00917.73
8.1.20.0060.00617.89
8.1.10.0030.01017.74
8.1.00.0040.00817.84
8.0.300.0030.00919.79
8.0.290.0080.00316.88
8.0.280.0030.00718.55
8.0.270.0030.00717.34
8.0.260.0000.01017.32
8.0.250.0060.00617.01
8.0.240.0000.01317.14
8.0.230.0000.01317.11
8.0.220.0030.00817.09
8.0.210.0030.00917.02
8.0.200.0030.00717.21
8.0.190.0000.01217.12
8.0.180.0000.01217.15
8.0.170.0000.01217.10
8.0.160.0040.00817.07
8.0.150.0040.00817.12
8.0.140.0030.01016.96
8.0.130.0030.00713.49
8.0.120.0030.00817.10
8.0.110.0060.00616.93
8.0.100.0070.00417.09
8.0.90.0080.00416.91
8.0.80.0060.02017.02
8.0.70.0080.00417.05
8.0.60.0000.01217.00
8.0.50.0080.00417.00
8.0.30.0090.01417.16
8.0.20.0160.01917.41
8.0.10.0000.01117.16
8.0.00.0100.02016.71
7.4.330.0000.00915.55
7.4.320.0090.00316.68
7.4.300.0080.00316.50
7.4.290.0000.01016.71
7.4.280.0070.00416.66
7.4.270.0000.01216.56
7.4.260.0000.01316.57
7.4.250.0030.01016.53
7.4.240.0070.00716.66
7.4.230.0100.00016.78
7.4.220.0080.02016.71
7.4.210.0230.01316.65
7.4.200.0000.01016.75
7.4.160.0120.01916.71
7.4.150.0180.02217.40
7.4.140.0120.01817.86
7.4.130.0130.01916.68
7.4.120.0100.01916.63
7.4.110.0190.01916.58
7.4.100.0140.02416.68
7.4.90.0130.01716.52
7.4.80.0070.01719.39
7.4.70.0130.01016.49
7.4.60.0110.01916.69
7.4.50.0120.00616.50
7.4.40.0230.00616.83
7.4.30.0160.02616.66
7.3.330.0030.00713.43
7.3.320.0000.01013.27
7.3.310.0070.00416.30
7.3.300.0040.00716.41
7.3.290.0100.01916.42
7.3.280.0170.01616.37
7.3.270.0200.01017.40
7.3.260.0160.02116.45
7.3.250.0120.01716.61
7.3.240.0180.01616.61
7.3.230.0140.01916.62
7.3.210.0200.00816.41
7.3.200.0090.01916.67
7.3.190.0220.01116.39
7.3.180.0090.01916.72
7.3.170.0100.01616.33
7.3.160.0110.02216.70
7.2.330.0100.01916.84
7.2.320.0180.02116.66
7.2.310.0060.02616.79
7.2.300.0110.02916.75
7.2.290.0170.01416.89
7.0.290.0181.94624.18
7.0.120.0102.48321.96
7.0.110.0132.44322.04
7.0.100.0032.48322.03
7.0.90.0002.47722.02
7.0.80.0072.49022.05
7.0.70.0032.49722.27
7.0.60.0002.48022.00
7.0.50.0072.48721.98
7.0.40.0002.49722.04
7.0.30.0132.48722.05
7.0.20.0002.49722.05
7.0.10.0072.44721.99
7.0.00.0072.45322.07
5.6.300.0111.98824.18
5.6.270.0102.44020.84
5.6.260.0072.42321.08
5.6.250.0132.45020.91
5.6.240.0102.48320.87
5.6.230.0102.47020.73
5.6.220.0172.48020.86
5.6.210.0032.49020.98
5.6.200.0072.49021.06
5.6.190.0032.49321.01
5.6.180.0102.48720.74
5.6.170.0102.45721.06
5.6.160.0032.49321.04
5.6.150.0072.48721.00
5.6.140.0002.48020.92
5.6.130.0102.48020.92
5.6.120.0032.47720.82
5.6.110.0102.48720.79
5.6.100.0072.47321.00
5.6.90.0132.48321.02
5.6.80.0202.47020.39
5.6.70.0072.49020.24
5.6.60.0102.48720.45
5.6.50.0002.49720.23
5.6.40.0102.48720.20
5.6.30.0102.48720.21
5.6.20.0072.48320.36
5.6.10.0002.49720.39
5.6.00.0072.48720.42

preferences:
27.45 ms | 403 KiB | 5 Q