3v4l.org

run code in 300+ PHP versions simultaneously
<?php class x { public function __construct() { $x =& $this; $x = new stdClass; $x->xx = 123; var_dump($this); } public function test() { var_dump($this); } } $x = new x; var_dump($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.0140.00716.63
8.3.50.0170.00517.43
8.3.40.0090.00618.51
8.3.30.0060.01218.35
8.3.20.0090.00018.57
8.3.10.0050.00320.36
8.3.00.0000.00819.25
8.2.180.0090.00916.50
8.2.170.0120.00322.96
8.2.160.0090.00620.57
8.2.150.0000.00824.18
8.2.140.0090.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00419.36
8.2.110.0100.00021.04
8.2.100.0060.00617.66
8.2.90.0030.00619.30
8.2.80.0040.00419.28
8.2.70.0000.00917.38
8.2.60.0060.00317.80
8.2.50.0040.00418.07
8.2.40.0040.00418.16
8.2.30.0060.00317.94
8.2.20.0050.00517.57
8.2.10.0070.00017.66
8.2.00.0050.00217.66
8.1.280.0030.01325.92
8.1.270.0070.00024.66
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0000.00923.83
8.1.230.0040.01120.92
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.11
8.1.190.0040.00417.40
8.1.180.0080.00018.10
8.1.170.0000.00818.66
8.1.160.0000.00718.73
8.1.150.0000.00818.57
8.1.140.0030.00517.38
8.1.130.0030.00317.88
8.1.120.0000.00817.41
8.1.110.0040.00417.39
8.1.100.0000.00717.28
8.1.90.0000.00817.31
8.1.80.0000.00717.42
8.1.70.0070.00017.36
8.1.60.0080.00017.50
8.1.50.0000.00717.44
8.1.40.0030.00617.41
8.1.30.0000.00717.66
8.1.20.0040.00417.49
8.1.10.0080.00017.44
8.1.00.0000.00717.35
8.0.300.0040.00419.98
8.0.290.0040.00416.63
8.0.280.0030.00318.37
8.0.270.0000.00717.17
8.0.260.0000.00616.80
8.0.250.0030.00616.91
8.0.240.0050.00216.94
8.0.230.0030.00316.89
8.0.220.0040.00416.88
8.0.210.0030.00316.79
8.0.200.0000.00716.77
8.0.190.0040.00416.75
8.0.180.0000.00716.84
8.0.170.0000.00916.75
8.0.160.0040.00416.82
8.0.150.0040.00416.75
8.0.140.0070.00016.67
8.0.130.0030.00313.21
8.0.120.0040.00416.78
8.0.110.0000.00716.71
8.0.100.0000.00716.60
8.0.90.0040.00416.91
8.0.80.0060.00916.88
8.0.70.0030.00516.86
8.0.60.0040.00416.85
8.0.50.0040.00416.64
8.0.30.0160.01017.21
8.0.20.0110.00616.95
8.0.10.0040.00416.96
8.0.00.0190.01016.65
7.4.330.0000.00512.83
7.4.320.0030.00316.52
7.4.300.0030.00616.59
7.4.290.0070.00016.44
7.4.280.0000.00916.59
7.4.270.0080.00016.60
7.4.260.0050.00013.25
7.4.250.0070.00416.48
7.4.240.0040.00416.49
7.4.230.0000.00616.54
7.4.220.0090.00916.44
7.4.210.0030.01216.53
7.4.200.0080.00016.50
7.4.190.0040.00416.66
7.4.160.0070.01016.40
7.4.150.0070.01016.53
7.4.140.0070.01116.71
7.4.130.0050.01216.46
7.4.120.0080.01116.40
7.4.110.0100.00716.32
7.4.100.0140.00316.51
7.4.90.0080.00916.41
7.4.80.0100.00719.39
7.4.70.0100.00716.34
7.4.60.0100.01216.51
7.4.50.0060.00316.35
7.4.40.0050.00816.29
7.4.30.0130.00316.38
7.4.00.0080.00815.14
7.3.330.0040.00413.16
7.3.320.0000.00513.08
7.3.310.0070.00016.29
7.3.300.0000.00716.21
7.3.290.0030.01216.23
7.3.280.0090.00816.25
7.3.270.0130.00316.41
7.3.260.0090.00716.43
7.3.250.0090.00916.37
7.3.240.0100.00716.43
7.3.230.0110.00716.38
7.3.210.0090.00916.27
7.3.200.0040.01216.61
7.3.190.0100.00716.59
7.3.180.0060.00916.46
7.3.170.0030.01216.20
7.3.160.0110.00516.53
7.3.120.0100.00314.75
7.2.330.0130.00316.58
7.2.320.0060.01116.73
7.2.310.0060.01416.31
7.2.300.0130.00616.65
7.2.290.0060.01216.68
7.2.80.0030.01016.70
7.2.60.0000.01216.90
7.2.00.0150.00919.41
7.1.200.0080.00515.76
7.1.100.0210.00317.65
7.1.70.0050.00316.81
7.1.60.0160.00919.40
7.1.50.0040.01816.94
7.1.00.0100.06322.48
7.0.200.0240.00614.39
7.0.140.0070.08722.00
7.0.120.0000.06722.07
7.0.60.0170.08020.07
7.0.50.0070.08017.88
7.0.40.0030.06020.11
7.0.30.0200.04020.11
7.0.20.0300.08020.16
7.0.10.0300.07320.06
7.0.00.0070.04720.09
5.6.280.0030.07321.12
5.6.210.0030.05720.52
5.6.200.0070.04318.14
5.6.190.0070.08020.60
5.6.180.0330.08720.77
5.6.170.0130.04720.54
5.6.160.0100.05720.51
5.6.150.0100.08018.22
5.6.140.0030.05318.28
5.6.130.0000.04718.14
5.6.120.0070.08721.05
5.6.110.0030.04721.04
5.6.100.0030.06321.04
5.6.90.0070.04020.98
5.6.80.0100.08020.29
5.6.70.4670.04320.52
5.5.350.0100.04720.32
5.5.340.0070.07717.95
5.5.330.0070.05020.42
5.5.320.0230.04020.26
5.5.310.0270.07720.19
5.5.300.0030.04317.96
5.5.290.0030.06317.95
5.5.280.0130.05320.88
5.5.270.0200.06320.96
5.5.260.0200.06020.74
5.5.250.0030.07720.55
5.5.240.0170.07320.13
5.4.450.0000.06719.48
5.4.440.0070.05019.42
5.4.430.0300.05019.44
5.4.420.0100.04019.49
5.4.410.0130.07019.25
5.4.400.0070.07019.15
5.4.390.0130.05318.86
5.4.380.0000.08319.14
5.4.370.0030.07719.08
5.4.360.0130.06718.85
5.4.350.0170.06719.14
5.4.340.0030.04319.16
5.4.320.0100.04719.17
5.4.310.0030.06018.93
5.4.300.0130.07019.16
5.4.290.0070.04319.07
5.4.280.0000.06719.20
5.4.270.0130.05318.94
5.4.260.0130.04019.11
5.4.250.0170.03718.86
5.4.240.0030.05319.11
5.4.230.0070.07719.23
5.4.220.0130.07019.05
5.4.210.0070.03719.14
5.4.200.0100.08018.99
5.4.190.0030.04019.23
5.4.180.0000.04319.04
5.4.170.0030.05719.23
5.4.160.0130.07719.16
5.4.150.0100.07719.10
5.4.140.0100.07316.40
5.4.130.0070.07316.41
5.4.120.0170.05716.29
5.4.110.0030.05016.34
5.4.100.0100.03716.29
5.4.90.0070.04316.28
5.4.80.0100.03316.39
5.4.70.0030.04016.29
5.4.60.0070.06716.39
5.4.50.0030.07316.44
5.4.40.0070.07016.44
5.4.30.0070.07016.41
5.4.20.0070.07016.40
5.4.10.0100.06316.36
5.4.00.0070.07315.74
5.3.290.0030.04714.83
5.3.280.0170.07014.52
5.3.270.0000.07714.55
5.3.260.0200.06314.68
5.3.250.0130.06714.67
5.3.240.0130.07014.63
5.3.230.0030.07014.65
5.3.220.0030.04014.57
5.3.210.0030.07014.46
5.3.200.0130.07314.56
5.3.190.0070.04014.71
5.3.180.0100.05314.62
5.3.170.0000.04314.72
5.3.160.0070.05014.56
5.3.150.0100.07014.56
5.3.140.0070.06014.55
5.3.130.0100.06714.61
5.3.120.0000.08714.57
5.3.110.0070.04714.47
5.3.100.0100.04714.11
5.3.90.0030.03714.01
5.3.80.0070.03314.07
5.3.70.0100.06314.17
5.3.60.0030.04714.07
5.3.50.0030.03713.95
5.3.40.0000.04013.95
5.3.30.0070.03313.93
5.3.20.0070.03013.75
5.3.10.0000.03713.82
5.3.00.0030.03313.68
5.2.170.0000.03311.31
5.2.160.0000.03311.11
5.2.150.0030.03011.21
5.2.140.0070.02711.04
5.2.130.0000.03011.07
5.2.120.0000.03011.00
5.2.110.0030.02711.12
5.2.100.0030.02711.12
5.2.90.0030.02711.14
5.2.80.0000.03011.15
5.2.70.0070.02711.11
5.2.60.0030.02711.02
5.2.50.0000.03010.97
5.2.40.0000.03011.04
5.2.30.0070.02311.03
5.2.20.0070.02311.03
5.2.10.0030.02710.91
5.2.00.0070.02310.77
5.1.60.0000.02710.06
5.1.50.0000.02710.04
5.1.40.0000.0239.97
5.1.30.0030.02310.37
5.1.20.0030.02310.43
5.1.10.0000.02710.02
5.1.00.0030.02310.09
5.0.50.0000.0209.43
5.0.40.0000.0209.43
5.0.30.0030.0279.43
5.0.20.0030.0179.43
5.0.10.0000.0209.43
5.0.00.0000.0309.43
4.4.90.0030.0139.43
4.4.80.0000.0179.43
4.4.70.0000.0179.43
4.4.60.0000.0179.43
4.4.50.0030.0139.43
4.4.40.0000.0279.43
4.4.30.0000.0209.43
4.4.20.0000.0179.43
4.4.10.0000.0179.43
4.4.00.0000.0239.43
4.3.110.0000.0139.43
4.3.100.0000.0139.43
4.3.90.0000.0139.43
4.3.80.0030.0239.43
4.3.70.0000.0139.43
4.3.60.0000.0179.43
4.3.50.0000.0179.43
4.3.40.0000.0239.43
4.3.30.0000.0139.43
4.3.20.0000.0179.43
4.3.10.0000.0179.43
4.3.00.0000.0139.43

preferences:
44.13 ms | 400 KiB | 5 Q