3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Point { public function __construct(public int $x, public int $y) {} } $p1 = new Point(1, 2); $p2 = new Point(1, 2); var_dump($p1 == $p2); var_dump($p1 === $p2);

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.20.0060.01020.27
8.5.10.0120.00716.86
8.5.00.0140.00719.68
8.4.170.0140.00820.34
8.4.160.0110.00623.89
8.4.150.0020.00014.05
8.4.140.0140.00817.82
8.4.130.0080.01117.64
8.4.120.0050.00522.18
8.4.110.0050.00422.36
8.4.100.0090.01017.91
8.4.90.0120.00917.77
8.4.80.0170.00417.68
8.4.70.0110.01118.09
8.4.60.0130.00718.68
8.4.50.0100.01118.54
8.4.40.0120.00917.84
8.4.30.0150.00318.87
8.4.20.0130.00621.15
8.4.10.0030.00723.69
8.3.300.0090.01020.69
8.3.290.0140.00620.82
8.3.280.0150.00620.10
8.3.270.0110.00816.50
8.3.260.0130.00716.55
8.3.250.0050.00518.84
8.3.240.0020.00616.77
8.3.230.0050.00416.51
8.3.220.0110.00617.09
8.3.210.0090.00916.54
8.3.200.0040.00516.55
8.3.190.0110.00916.69
8.3.180.0040.00416.79
8.3.170.0130.00617.29
8.3.160.0120.00617.21
8.3.150.0140.00717.18
8.3.140.0080.01216.51
8.3.130.0130.00918.16
8.3.120.0040.01316.26
8.3.110.0180.00316.57
8.3.100.0160.00418.22
8.3.90.0170.00416.21
8.3.80.0220.00016.38
8.3.70.0130.00916.43
8.3.60.0150.00617.91
8.3.50.0120.00818.46
8.3.40.0090.00917.17
8.3.30.0130.00417.63
8.3.20.0160.00317.39
8.3.10.0210.00017.12
8.3.00.0110.00019.03
8.2.300.0120.00721.98
8.2.290.0120.00620.33
8.2.280.0130.00616.79
8.2.270.0140.00416.95
8.2.260.0120.00618.07
8.2.250.0150.00316.57
8.2.240.0120.00616.45
8.2.230.0110.00818.21
8.2.220.0110.00716.05
8.2.210.0160.00018.07
8.2.200.0100.00716.62
8.2.190.0190.00016.28
8.2.180.0180.00316.61
8.2.170.0160.00319.23
8.2.160.0110.00419.23
8.2.150.0130.00319.14
8.2.140.0120.00819.08
8.2.130.0100.00717.29
8.2.120.0130.00717.21
8.2.110.0230.00017.30
8.2.100.0160.00317.43
8.2.90.0140.00417.45
8.2.80.0170.00017.46
8.2.70.0130.00417.33
8.2.60.0160.00017.09
8.2.50.0150.00417.19
8.2.40.0090.00917.38
8.2.30.0130.00417.59
8.2.20.0120.00417.21
8.2.10.0140.00317.33
8.2.00.0110.00717.14
8.1.340.0130.00823.47
8.1.330.0110.00816.49
8.1.320.0120.00816.22
8.1.310.0160.00215.99
8.1.300.0100.01017.82
8.1.290.0150.00315.84
8.1.280.0160.00015.76
8.1.270.0170.00317.16
8.1.260.0140.00517.19
8.1.250.0130.00617.24
8.1.240.0110.00517.19
8.1.230.0060.00917.07
8.1.220.0060.01117.25
8.1.210.0110.00517.05
8.1.200.0100.00717.13
8.1.190.0170.00016.81
8.1.180.0100.00716.86
8.1.170.0130.00418.75
8.1.160.0120.00417.11
8.1.150.0150.00317.14
8.1.140.0100.00616.92
8.1.130.0130.00417.08
8.1.120.0080.00817.04
8.1.110.0130.00317.07
8.1.100.0120.00516.71
8.1.90.0090.00617.02
8.1.80.0130.00317.12
8.1.70.0140.00317.11
8.1.60.0080.00817.14
8.1.50.0130.00417.20
8.1.40.0100.01017.04
8.1.30.0170.00317.17
8.1.20.0190.00517.06
8.1.10.0180.00417.30
8.1.00.0180.00417.22

preferences:
30.81 ms | 403 KiB | 5 Q