3v4l.org

run code in 500+ PHP versions simultaneously
<?php class A { function __toString() { return 'A'; } } $a = new A(); $b = [$a => $a]; print_r($b);

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.80.0140.00317.12
8.5.70.0060.00217.04
8.5.60.0100.00716.86
8.5.50.0120.00716.94
8.5.30.0090.00819.83
8.5.20.0080.00920.04
8.5.10.0120.00716.89
8.5.00.0180.00720.03
8.4.230.0080.00219.78
8.4.220.0070.00219.80
8.4.210.0170.00619.68
8.4.180.0130.00919.61
8.4.170.0090.01222.15
8.4.160.0100.01222.09
8.4.150.0060.00716.94
8.4.140.0150.00717.44
8.4.130.0130.00818.03
8.4.120.0120.00923.92
8.4.110.0100.01122.46
8.4.100.0120.00917.95
8.4.90.0110.01017.96
8.4.80.0240.01117.44
8.4.70.0200.00717.96
8.4.60.0390.01117.88
8.4.50.0300.00518.04
8.4.40.0410.00717.46
8.4.30.0460.00717.61
8.4.20.0420.00617.74
8.4.10.0300.00617.67
8.3.320.0130.00820.48
8.3.310.0080.00318.58
8.3.300.0130.00720.67
8.3.290.0080.01222.53
8.3.280.0120.00720.62
8.3.270.0110.00816.79
8.3.260.0110.00816.74
8.3.250.0130.00618.83
8.3.240.0120.00617.05
8.3.230.0120.00616.81
8.3.220.0060.00418.53
8.3.210.0120.00416.97
8.3.200.0350.00316.97
8.3.190.0350.00716.97
8.3.180.0160.00616.97
8.3.170.0340.00516.97
8.3.160.0220.00416.97
8.3.150.0200.00416.97
8.3.140.0280.00716.97
8.3.130.0150.00616.97
8.3.120.0150.00616.97
8.3.110.0160.00716.97
8.3.100.0250.00616.97
8.3.90.0270.00916.97
8.3.80.0400.00816.97
8.3.70.0360.00516.97
8.3.60.0230.00816.97
8.3.50.0280.00716.97
8.3.40.0190.00617.57
8.3.30.0180.00317.44
8.3.20.0160.00517.54
8.3.10.0310.01217.25
8.3.00.0260.00717.57
8.2.310.0130.00918.19
8.2.300.0120.00720.21
8.2.290.0110.00820.38
8.2.280.0230.00316.97
8.2.270.0290.00716.97
8.2.260.0370.00516.97
8.2.250.0250.00416.97
8.2.240.0150.00416.97
8.2.230.0110.00916.97
8.2.220.0280.00516.97
8.2.210.0180.00916.97
8.2.200.0160.00316.97
8.2.190.0190.00916.97
8.2.180.0180.00916.97
8.2.170.0330.01217.70
8.2.160.0350.00517.89
8.2.150.0380.00717.82
8.2.140.0420.00517.49
8.2.130.0400.00617.36
8.2.120.0390.00717.67
8.2.110.0350.00917.51
8.2.100.0330.01217.84
8.2.90.0320.00817.73
8.2.80.0380.00817.48
8.2.70.0370.00717.71
8.2.60.0350.00917.75
8.2.50.0330.00917.57
8.2.40.0500.00817.60
8.2.30.0330.00817.45
8.2.20.0210.00417.74
8.2.10.0320.00817.50
8.2.00.0340.01217.79
8.1.340.0120.01320.31

preferences:
65.84 ms | 889 KiB | 5 Q