3v4l.org

run code in 300+ PHP versions simultaneously
<?php class x { public function __construct() { $x =& $this; $x = new stdClass; var_dump($this); } } for($i=1; $i<10000;$i++) { var_dump(new 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.3.60.0260.01316.63
8.3.50.0260.00722.06
8.3.40.0210.01818.54
8.3.30.0350.00819.06
8.3.20.0190.00320.10
8.3.10.0210.00023.66
8.3.00.0220.00317.50
8.2.180.0290.00418.28
8.2.170.0300.01022.96
8.2.160.0270.01520.34
8.2.150.0090.00924.18
8.2.140.0110.00824.66
8.2.130.0230.01226.16
8.2.120.0180.00022.30
8.2.110.0230.00321.97
8.2.100.0160.01017.84
8.2.90.0050.00817.72
8.2.80.0150.00017.97
8.2.70.0030.01317.50
8.2.60.0050.01017.93
8.2.50.0050.01018.07
8.2.40.0120.00418.03
8.2.30.0050.00918.08
8.2.20.0070.00717.57
8.2.10.0040.01017.70
8.2.00.0040.00917.63
8.1.280.0200.01225.92
8.1.270.0330.01223.80
8.1.260.0170.00426.35
8.1.250.0120.00628.09
8.1.240.0140.00922.39
8.1.230.0160.00520.97
8.1.220.0000.00917.74
8.1.210.0100.00718.90
8.1.200.0120.00317.23
8.1.190.0070.00717.18
8.1.180.0120.00218.10
8.1.170.0060.00618.60
8.1.160.0090.00622.08
8.1.150.0080.00518.67
8.1.140.0060.00617.38
8.1.130.0050.00817.44
8.1.120.0080.00417.45
8.1.110.0100.00317.42
8.1.100.0160.00017.50
8.1.90.0070.00317.35
8.1.80.0040.01117.50
8.1.70.0080.00417.46
8.1.60.0050.01117.60
8.1.50.0040.01217.57
8.1.40.0080.00417.54
8.1.30.0070.01017.64
8.1.20.0080.00817.65
8.1.10.0090.00417.46
8.1.00.0030.01217.49
8.0.300.0070.00719.83
8.0.290.0100.00316.91
8.0.280.0050.00818.43
8.0.270.0080.00817.18
8.0.260.0080.00416.61
8.0.250.0040.00816.78
8.0.240.0040.01216.86
8.0.230.0040.00916.75
8.0.220.0100.00316.72
8.0.210.0060.00616.79
8.0.200.0070.00716.85
8.0.190.0040.00816.84
8.0.180.0090.00316.66
8.0.170.0070.00316.78
8.0.160.0140.00016.75
8.0.150.0080.00816.71
8.0.140.0100.00516.63
8.0.130.0100.00613.19
8.0.120.0090.00916.66
8.0.110.0100.00316.76
8.0.100.0120.00016.59
8.0.90.0070.00716.58
8.0.80.0180.02216.69
8.0.70.0090.00616.59
8.0.60.0080.00416.89
8.0.50.0030.01016.58
8.0.30.0360.02916.90
8.0.20.0360.02717.40
8.0.10.0040.01116.84
8.0.00.0280.03316.63
7.4.330.0000.01115.00
7.4.320.0040.00816.47
7.4.300.0060.00616.37
7.4.290.0140.00316.40
7.4.280.0080.00416.36
7.4.270.0060.00616.47
7.4.260.0070.00716.42
7.4.250.0120.00416.42
7.4.240.0030.00816.48
7.4.230.0060.00616.38
7.4.220.0130.04216.58
7.4.210.0200.02016.48
7.4.200.0080.00416.57
7.4.190.0050.00516.54
7.4.160.0310.01716.50
7.4.150.0470.01017.40
7.4.140.0290.02817.86
7.4.130.0440.01216.39
7.4.120.0360.02516.40
7.4.110.0420.03716.20
7.4.100.0440.01816.37
7.4.90.0310.02416.40
7.4.80.0330.01819.39
7.4.70.0370.02016.50
7.4.60.0440.01816.34
7.4.50.0140.00716.23
7.4.40.0250.02122.77
7.4.30.0260.01916.32
7.4.00.0190.01614.86
7.3.330.0070.00713.29
7.3.320.0000.01613.31
7.3.310.0080.00516.27
7.3.300.0080.00416.10
7.3.290.0280.02416.26
7.3.280.0330.02216.20
7.3.270.0300.02417.40
7.3.260.0400.01916.47
7.3.250.0370.02916.33
7.3.240.0400.01116.37
7.3.230.0370.02516.39
7.3.210.0250.02916.25
7.3.200.0450.02519.39
7.3.190.0360.02116.51
7.3.180.0170.03316.29
7.3.170.0220.02616.35
7.3.160.0530.03016.47
7.3.120.0100.01615.01
7.2.330.0380.02216.36
7.2.320.0110.03616.48
7.2.310.0210.03616.55
7.2.300.0240.02816.54
7.2.290.0310.01716.40
7.2.60.0230.01516.87
7.1.200.0030.01015.77
7.1.100.0110.01118.03
7.1.70.0060.01216.96
7.1.60.0280.01019.31
7.1.50.0420.01434.80
7.0.200.0040.00816.59

preferences:
35.46 ms | 401 KiB | 5 Q