3v4l.org

run code in 500+ PHP versions simultaneously
<?php class A { function __toString() { return "A"; } } $a = new a; $b = [$a => $a]; //Illegal offset type 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.60.0120.00516.75
8.5.50.0110.00616.99
8.5.30.0120.00618.22
8.5.20.0110.00820.05
8.5.10.0040.00516.83
8.5.00.0070.00320.07
8.4.210.0080.01221.40
8.4.180.0050.00422.09
8.4.170.0130.00823.87
8.4.160.0100.01223.99
8.4.150.0070.00616.85
8.4.140.0130.01317.94
8.4.130.0120.00718.04
8.4.120.0140.00620.51
8.4.110.0060.00318.91
8.4.100.0170.00417.88
8.4.90.0130.00818.00
8.4.80.0330.00818.75
8.4.70.0350.01117.50
8.4.60.0420.00817.93
8.4.50.0390.00917.75
8.4.40.0420.01117.44
8.4.30.0450.00817.74
8.4.20.0350.01017.48
8.4.10.0210.00517.60
8.3.300.0130.00622.60
8.3.290.0100.01020.72
8.3.280.0130.01118.53
8.3.270.0090.01416.72
8.3.260.0130.00716.69
8.3.250.0080.00818.63
8.3.240.0130.00616.82
8.3.230.0030.00616.90
8.3.220.0140.00219.16
8.3.210.0190.00316.63
8.3.200.0350.00816.96
8.3.190.0220.00516.59
8.3.180.0150.00616.52
8.3.170.0420.01016.27
8.3.160.0300.00616.68
8.3.150.0400.00816.59
8.3.140.0440.00716.63
8.3.130.0230.00716.62
8.3.120.0350.00716.29
8.3.110.0340.01316.54
8.3.100.0400.01016.45
8.3.90.0420.00816.73
8.3.80.0440.00716.59
8.3.70.0380.01116.75
8.3.60.0410.00716.55
8.3.50.0410.00916.73
8.3.40.0470.00717.45
8.3.30.0240.00317.47
8.3.20.0180.00217.39
8.3.10.0140.00517.53
8.3.00.0140.00817.63
8.2.300.0110.00818.82
8.2.290.0090.01020.50
8.2.280.0310.00516.88
8.2.270.0200.00216.67
8.2.260.0290.00516.64
8.2.250.0350.00716.42
8.2.240.0340.00816.46
8.2.230.0340.00916.38
8.2.220.0370.00716.48
8.2.210.0350.00616.47
8.2.200.0350.00816.32
8.2.190.0220.00516.79
8.2.180.0280.01016.53
8.2.170.0390.00617.63
8.2.160.0360.00817.51
8.2.150.0380.00817.65
8.2.140.0400.00717.48
8.2.130.0390.01117.79
8.2.120.0300.01117.81
8.2.110.0280.00417.65
8.2.100.0320.00817.64
8.2.90.0300.01317.57
8.2.80.0350.00917.50
8.2.70.0340.01217.46
8.2.60.0410.00617.81
8.2.50.0390.00517.52
8.2.40.0350.00617.61
8.2.30.0330.00517.68
8.2.20.0370.01017.73
8.2.10.0320.00817.63
8.2.00.0320.00917.68
8.1.340.0110.00921.77

preferences:
55 ms | 860 KiB | 5 Q