3v4l.org

run code in 300+ PHP versions simultaneously
<?php const xxx = 123; $arr = [1,2,3]; $x = 1; echo xxx-$arr{$x}; echo "\n"; echo xxx.$arr{$x};

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.1.40.0120.00417.32
8.1.30.0130.00317.50
8.1.20.0120.00517.43
8.1.10.0150.00617.30
8.1.00.0160.00317.19
8.0.170.0120.00416.79
8.0.160.0140.00516.78
8.0.150.0130.00316.71
8.0.140.0090.00716.66
8.0.130.0130.00516.74
8.0.120.0090.00716.72
8.0.110.0150.00516.73
8.0.100.0120.00516.75
8.0.90.0110.00716.69
8.0.80.0110.00516.71
8.0.70.0130.00116.70
8.0.60.0090.00616.77
8.0.50.0080.00516.72
8.0.30.0160.00316.75
8.0.20.0140.00516.81
8.0.10.0130.00616.90
7.4.280.0170.00616.46
7.4.270.0190.00416.47
7.4.260.0200.00216.44
7.4.250.0180.00416.52
7.4.240.0140.00716.37
7.4.230.0170.00516.39
7.4.220.0150.00416.51
7.4.210.0120.00416.50
7.4.200.0090.00716.48
7.4.190.0110.00616.49
7.4.180.0170.00316.54
7.4.160.0120.00316.55
7.4.150.0110.00516.33
7.4.140.0120.00416.33
7.4.130.0120.00316.52
7.4.120.0080.00716.41
7.4.110.0080.00716.35
7.4.100.0130.00216.38
7.4.90.0100.00516.38
7.4.80.0130.00416.38
7.4.70.0080.00716.32
7.4.60.0100.00616.44
7.4.50.0140.00416.35
7.4.40.0140.00316.26
7.4.30.0120.00516.33
7.4.20.0140.00116.42
7.4.10.0150.00116.34
7.4.00.0120.00216.38

preferences:
144.09 ms | 1394 KiB | 7 Q