3v4l.org

run code in 300+ PHP versions simultaneously
<?php const FOO = new stdClass(); var_dump(FOO); $foo = FOO; $foo->bar = 'bar'; var_dump(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.4.120.0050.00424.07
8.4.110.0100.01018.98
8.4.100.0120.00818.86
8.4.90.0090.01120.48
8.4.80.0060.00218.56
8.4.70.0090.00717.89
8.4.60.0030.00518.75
8.4.50.0020.00720.38
8.4.40.0000.00917.71
8.4.30.0060.01320.36
8.4.20.0090.00617.99
8.4.10.0080.00822.03
8.3.250.0100.00718.77
8.3.240.0050.00417.35
8.3.230.0110.00716.35
8.3.220.0100.00818.91
8.3.210.0110.00918.44
8.3.200.0050.00416.48
8.3.190.0140.00616.91
8.3.180.0070.01120.67
8.3.170.0120.00617.21
8.3.160.0040.01416.42
8.3.150.0120.00618.23
8.3.140.0070.01116.85
8.3.130.0130.00618.16
8.3.120.0050.00519.17
8.3.110.0030.00622.58
8.3.100.0080.00820.94
8.3.90.0040.00420.94
8.3.50.0060.00320.94
8.2.290.0050.00320.66
8.2.280.0140.00918.45
8.2.270.0090.00920.70
8.2.260.0090.00917.20
8.2.250.0030.00716.43
8.2.240.0060.00317.17
8.2.230.0040.00422.58
8.2.220.0000.00822.58
8.2.210.0030.00622.58
8.2.90.0250.00417.13
8.2.80.0320.00017.22
8.2.70.0340.00017.50
8.2.60.0320.00417.13
8.2.50.0270.00517.13
8.2.40.0270.00817.38
8.2.30.0250.00617.25
8.2.20.0090.00617.38
8.2.10.0250.00317.25
8.2.00.0230.00317.13
8.1.330.0100.01021.54
8.1.320.0110.01015.92
8.1.310.0000.00816.37
8.1.300.0080.01116.09
8.1.220.0250.00417.00
8.1.210.0200.00717.35
8.1.200.0240.00317.10
8.1.190.0260.00017.25
8.1.180.0210.00517.00
8.1.170.0270.00016.98
8.1.160.0250.00017.13
8.1.150.0170.01217.13
8.1.140.0230.00317.00
8.1.130.0210.00517.13
8.1.120.0130.01317.13
8.1.110.0240.00417.13
8.1.100.0240.00317.13
8.1.90.0200.00617.13
8.1.80.0250.00317.13
8.1.70.0230.00417.25
8.1.60.0150.01217.25
8.1.50.0210.00517.24
8.1.40.0180.00917.38
8.1.30.0220.00617.25
8.1.20.0210.00717.25
8.1.10.0240.00317.13
8.1.00.0200.00817.25
8.0.300.0240.00316.55
8.0.290.0290.00016.55
8.0.280.0270.00316.63
8.0.270.0240.00616.61
8.0.260.0230.00516.55
8.0.250.0230.00616.55
8.0.240.0240.00316.55
8.0.230.0270.00016.55
8.0.220.0180.00916.55
8.0.210.0180.00716.55
8.0.200.0230.00316.63
8.0.190.0180.00716.55
8.0.180.0190.00816.55
8.0.170.0140.01216.55
8.0.160.0160.01016.55
8.0.150.0270.00016.55
8.0.140.0230.00316.55
8.0.130.0230.00316.55
8.0.120.0250.00016.55
8.0.110.0170.00716.55
8.0.100.0260.00016.55
8.0.90.0260.00016.55
8.0.80.0170.00916.55
8.0.70.0220.00616.55
8.0.60.0190.00616.55
8.0.50.0220.00416.55
8.0.30.0230.00316.55
8.0.20.0190.00616.55
8.0.10.0170.00816.55

preferences:
28.22 ms | 403 KiB | 5 Q