3v4l.org

run code in 500+ PHP versions simultaneously
<?php $o = function () {}; var_dump($o); // just for visual compare var_dump((array) $o); // <-- the issue $o = new \DateTime('2013-02-20 20:00:12 UTC'); var_dump($o); var_dump((array) $o);

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.5.30.0110.00718.07
8.5.20.0120.00620.07
8.5.10.0110.00816.81
8.5.00.0160.00619.86
8.4.180.0120.00919.68
8.4.170.0140.00723.73
8.4.160.0130.01023.87
8.4.150.0080.00516.88
8.4.140.0140.00717.47
8.4.130.0080.01217.94
8.4.120.0080.01220.53
8.4.110.0110.01019.00
8.4.100.0140.00717.88
8.4.90.0160.00517.68
8.4.80.0100.01119.69
8.4.70.0170.00417.90
8.4.60.0370.01117.51
8.4.50.0360.01317.76
8.4.40.0390.00917.55
8.4.30.0370.01217.63
8.4.20.0420.00817.75
8.4.10.0380.01117.45
8.3.300.0130.00720.73
8.3.290.0130.00820.60
8.3.280.0070.00516.29
8.3.270.0120.00916.79
8.3.260.0140.00516.86
8.3.250.0130.00618.68
8.3.240.0100.00816.44
8.3.230.0110.00916.36
8.3.220.0060.01216.58
8.3.210.0260.01416.74
8.3.200.0360.01116.20
8.3.190.0350.00416.62
8.3.180.0260.00816.45
8.3.170.0350.01016.51
8.3.160.0360.00716.28
8.3.150.0390.00816.63
8.3.140.0280.00616.38
8.3.130.0300.01016.33
8.3.120.0320.00616.68
8.3.110.0150.00316.48
8.3.100.0330.00816.73
8.3.90.0330.00616.53
8.3.80.0390.00916.60
8.3.70.0480.00716.54
8.3.60.0320.00816.56
8.3.50.0390.01116.20
8.3.40.0370.01017.30
8.3.30.0360.00817.30
8.3.20.0350.00917.43
8.3.10.0270.01317.48
8.3.00.0360.01117.34
8.2.300.0140.00718.84
8.2.290.0120.00718.60
8.2.280.0320.00616.55
8.2.270.0290.01116.57
8.2.260.0290.01016.20
8.2.250.0240.01116.86
8.2.240.0280.01116.45
8.2.230.0310.00816.39
8.2.220.0320.00816.46
8.2.210.0290.01116.68
8.2.200.0340.00916.44
8.2.190.0220.00216.61
8.2.180.0300.00616.62
8.2.170.0310.01017.94
8.2.160.0310.00917.69
8.2.150.0210.00317.82
8.2.140.0350.00917.73
8.2.130.0350.00917.61
8.2.120.0320.01017.56
8.2.110.0340.00317.61
8.2.100.0310.01317.73
8.2.90.0330.01117.54
8.2.80.0350.00717.61
8.2.70.0340.00917.80
8.2.60.0290.00517.62
8.2.50.0340.00617.45
8.2.40.0360.00917.81
8.2.30.0380.00417.51
8.2.20.0300.00817.63
8.2.10.0310.00917.60
8.2.00.0280.01217.72
8.1.340.0110.00921.57

preferences:
53.92 ms | 868 KiB | 5 Q