3v4l.org

run code in 500+ PHP versions simultaneously
<?php class x { private $p = 'Yes!'; function foo() { // valid code echo $this->$this; } function __toString() { return 'p'; } } (new 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.70.0050.00216.77
8.5.60.0060.00116.57
8.5.50.0090.00816.61
8.5.30.0120.00518.02
8.5.20.0110.00820.27
8.5.10.0110.00816.64
8.5.00.0150.00821.77
8.4.210.0070.00521.52
8.4.180.0130.00919.72
8.4.170.0100.01120.46
8.4.160.0130.00823.76
8.4.150.0070.00516.87
8.4.140.0150.00617.33
8.4.130.0130.00717.91
8.4.120.0140.00620.57
8.4.110.0140.00620.46
8.4.100.0130.00817.68
8.4.90.0080.01217.62
8.4.80.0130.00719.36
8.4.70.0390.00717.44
8.4.60.0400.00717.45
8.4.50.0420.01017.28
8.4.40.0400.01117.47
8.4.30.0370.00617.25
8.4.20.0310.01017.53
8.4.10.0460.00617.57
8.3.300.0130.00620.79
8.3.290.0100.00922.46
8.3.280.0140.00618.41
8.3.270.0080.01216.40
8.3.260.0100.00916.46
8.3.250.0100.00818.89
8.3.240.0030.00516.82
8.3.230.0100.00916.32
8.3.220.0150.00316.57
8.3.210.0380.01016.28
8.3.200.0350.00718.54
8.3.190.0300.00816.52
8.3.180.0210.00416.57
8.3.170.0160.00516.39
8.3.160.0300.01116.38
8.3.150.0340.01116.46
8.3.140.0370.00916.53
8.3.130.0320.00716.52
8.3.120.0290.01216.22
8.3.110.0270.01416.51
8.3.100.0430.00816.20
8.3.90.0350.00916.55
8.3.80.0360.01016.32
8.3.70.0390.01016.20
8.3.60.0310.00916.32
8.3.50.0340.00716.39
8.3.40.0330.01217.28
8.3.30.0300.00717.43
8.3.20.0310.00517.41
8.3.10.0190.00617.23
8.3.00.0260.00917.51
8.2.300.0080.01318.60
8.2.290.0110.00820.37
8.2.280.0310.00916.48
8.2.270.0320.00816.31
8.2.260.0280.00916.20
8.2.250.0340.00616.34
8.2.240.0380.00916.43
8.2.230.0340.01116.23
8.2.220.0240.00916.39
8.2.210.0340.00316.20
8.2.200.0360.00416.69
8.2.190.0290.01116.70
8.2.180.0310.00716.47
8.2.170.0290.00917.78
8.2.160.0340.00717.64
8.2.150.0300.00617.62
8.2.140.0200.00417.59
8.2.130.0330.00817.43
8.2.120.0330.00817.54
8.2.110.0320.00817.61
8.2.100.0330.00817.49
8.2.90.0330.01017.07
8.2.80.0350.01117.19
8.2.70.0370.00418.73
8.2.60.0340.00817.11
8.2.50.0390.00617.27
8.2.40.0390.01117.36
8.2.30.0210.00917.29
8.2.20.0170.00817.20
8.2.10.0140.00617.23
8.2.00.0150.00417.45
8.1.340.0050.00621.74

preferences:
54.98 ms | 847 KiB | 5 Q