3v4l.org

run code in 300+ PHP versions simultaneously
<?php class x { function p() { return $this->p; } } $x = new x; var_dump($x->p); var_dump($x->foo());

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.00717.98
8.5.20.0110.00620.20
8.5.10.0150.00416.70
8.5.00.0110.01219.90
8.4.180.0140.00722.04
8.4.170.0140.01023.88
8.4.160.0130.01023.87
8.4.150.0070.00516.91
8.4.140.0080.01318.01
8.4.130.0140.00617.74
8.4.120.0140.00620.47
8.4.110.0060.01422.51
8.4.100.0140.00718.10
8.4.90.0120.00817.95
8.4.80.0210.00617.98
8.4.70.0180.00818.17
8.4.60.0410.00317.90
8.4.50.0150.00717.81
8.4.40.0430.01117.67
8.4.30.0440.00917.62
8.4.20.0480.00517.57
8.4.10.0410.01117.44
8.3.300.0080.00420.71
8.3.290.0140.01020.86
8.3.280.0110.00918.22
8.3.270.0130.00616.43
8.3.260.0090.00916.60
8.3.250.0140.00518.62
8.3.240.0150.00316.75
8.3.230.0130.00616.52
8.3.220.0200.00816.97
8.3.210.0210.00716.97
8.3.200.0570.01116.97
8.3.190.0380.01116.97
8.3.180.0350.00816.97
8.3.170.0320.00816.97
8.3.160.0470.01016.97
8.3.150.0410.01116.97
8.3.140.0430.00616.97
8.3.130.0350.00616.97
8.3.120.0390.00616.97
8.3.110.0370.00816.97
8.3.100.0440.00816.97
8.3.90.0410.00816.97
8.3.80.0440.00716.97
8.3.70.0440.00716.97
8.3.60.0430.00816.97
8.3.50.0190.00416.97
8.3.40.0270.00717.45
8.3.30.0400.00417.63
8.3.20.0260.01417.43
8.3.10.0280.01017.60
8.3.00.0420.00517.50
8.2.300.0140.00720.25
8.2.290.0050.00320.38
8.2.280.0340.00716.97
8.2.270.0380.00316.97
8.2.260.0330.00716.97
8.2.250.0340.00716.97
8.2.240.0320.00916.97
8.2.230.0350.00816.97
8.2.220.0390.00716.97
8.2.210.0170.00416.97
8.2.200.0140.00516.97
8.2.190.0180.00116.97
8.2.180.0260.00816.97
8.2.170.0380.01117.61
8.2.160.0440.00417.73
8.2.150.0370.00717.54
8.2.140.0360.00517.39
8.2.130.0370.00817.34
8.2.120.0360.00817.54
8.2.110.0400.00617.47
8.2.100.0310.01117.51
8.2.90.0240.00417.73
8.2.80.0230.00317.45
8.2.70.0160.00517.69
8.2.60.0230.00917.55
8.2.50.0290.01217.38
8.2.40.0360.00617.52
8.2.30.0330.00717.43
8.2.20.0310.00917.30
8.2.10.0280.01317.47
8.2.00.0340.00517.52
8.1.340.0120.00820.27

preferences:
58.39 ms | 858 KiB | 5 Q