3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $foo; public function &bar1() { return $this; } public function bar2($o) { $x =& $this->bar1(); $x = $o; } } $a = new Foo; $a->foo = 1; $b = new Foo; $b->foo = 2; var_dump($a->foo, $b->foo); $a->bar2($b); var_dump($a->foo, $b->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.3.70.0060.00916.58
8.3.60.0170.00318.28
8.3.50.0120.00721.33
8.3.40.0120.00318.60
8.3.30.0090.00618.79
8.3.20.0040.00418.52
8.3.10.0040.00420.92
8.3.00.0000.00723.52
8.2.180.0150.00016.50
8.2.170.0000.01522.96
8.2.160.0110.00320.38
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0040.00419.54
8.2.110.0100.00720.47
8.2.100.0040.00717.84
8.2.90.0020.00519.22
8.2.80.0020.00517.97
8.2.70.0040.00417.50
8.2.60.0090.00017.92
8.2.50.0000.00918.07
8.2.40.0040.00418.22
8.2.30.0060.00321.30
8.2.20.0040.00417.50
8.2.10.0070.00017.61
8.2.00.0030.00817.56
8.1.280.0070.00725.92
8.1.270.0030.00523.99
8.1.260.0110.00426.35
8.1.250.0000.00728.09
8.1.240.0060.00322.42
8.1.230.0070.00421.03
8.1.220.0050.00318.77
8.1.210.0000.00818.82
8.1.200.0030.00617.22
8.1.190.0040.00417.50
8.1.180.0000.00818.10
8.1.170.0000.00918.53
8.1.160.0040.00418.74
8.1.150.0040.00418.47
8.1.140.0030.00517.33
8.1.130.0000.00717.75
8.1.120.0000.00817.42
8.1.110.0000.00917.39
8.1.100.0050.00217.26
8.1.90.0000.00717.28
8.1.80.0000.00717.37
8.1.70.0030.00517.41
8.1.60.0080.00017.53
8.1.50.0030.00517.38
8.1.40.0000.00817.50
8.1.30.0000.00817.53
8.1.20.0050.00317.64
8.1.10.0000.00717.39
8.1.00.0050.00217.45
8.0.300.0040.00419.83
8.0.290.0050.00216.93
8.0.280.0030.00518.32
8.0.270.0030.00317.22
8.0.260.0000.00716.76
8.0.250.0020.00516.91
8.0.240.0000.00816.92
8.0.230.0030.00316.89
8.0.220.0000.00716.80
8.0.210.0030.00316.79
8.0.200.0060.00016.85
8.0.190.0040.00416.93
8.0.180.0030.00616.74
8.0.170.0030.00516.85
8.0.160.0030.00516.81
8.0.150.0000.00716.84
8.0.140.0080.00016.82
8.0.130.0030.00313.28
8.0.120.0040.00416.75
8.0.110.0080.00016.80
8.0.100.0070.00016.79
8.0.90.0050.00316.63
8.0.80.0140.00016.79
8.0.70.0000.00716.68
8.0.60.0040.00416.65
8.0.50.0070.00016.70
8.0.30.0110.00816.93
8.0.20.0140.00917.40
8.0.10.0000.00716.82
8.0.00.0110.00616.56
7.4.330.0000.00614.73
7.4.320.0030.00316.50
7.4.300.0000.00616.60
7.4.290.0060.00016.41
7.4.280.0000.00716.45
7.4.270.0040.00316.60
7.4.260.0030.00313.25
7.4.250.0070.00016.58
7.4.240.0050.00316.62
7.4.230.0070.00016.70
7.4.220.0070.01016.61
7.4.210.0080.00616.57
7.4.200.0030.00316.59
7.4.190.0030.00316.46
7.4.160.0030.02016.38
7.4.150.0060.01217.40
7.4.140.0130.01117.86
7.4.130.0080.01016.38
7.4.120.0070.00916.41
7.4.110.0130.00816.48
7.4.100.0100.01316.52
7.4.90.0150.00316.42
7.4.80.0130.00819.37
7.4.70.0030.01316.57
7.4.60.0060.01116.41
7.4.50.0060.00316.45
7.4.40.0110.00022.52
7.4.30.0030.01316.41
7.4.00.0060.00615.01
7.3.330.0030.00313.39
7.3.320.0030.00313.36
7.3.310.0000.00716.21
7.3.300.0040.00416.37
7.3.290.0100.01016.37
7.3.280.0090.00816.33
7.3.270.0100.00717.40
7.3.260.0130.00618.24
7.3.250.0090.01016.36
7.3.240.0120.00616.59
7.3.230.0080.00816.39
7.3.210.0110.00716.60
7.3.200.0130.00319.39
7.3.190.0060.01216.46
7.3.180.0110.00616.64
7.3.170.0040.01216.46
7.3.160.0090.00616.61
7.3.120.0000.01514.73
7.3.00.0080.00416.79
7.2.330.0070.01016.79
7.2.320.0100.00716.68
7.2.310.0140.03116.38
7.2.300.0030.01316.74
7.2.290.0080.01116.73
7.2.130.0000.01116.70
7.2.120.0040.00816.80
7.2.110.0000.01317.10
7.2.100.0000.01016.86
7.2.90.0080.00416.73
7.2.80.0060.00616.97
7.2.70.0100.00016.81
7.2.60.0070.00716.86
7.2.50.0030.00717.03
7.2.40.0040.00716.43
7.2.30.0030.01216.75
7.2.20.0100.00016.71
7.2.10.0080.00416.86
7.2.00.0050.00718.25
7.1.250.0040.00415.68
7.1.240.0060.00615.96
7.1.230.0070.00415.75
7.1.220.0070.00315.67
7.1.210.0030.00515.57
7.1.200.0130.00015.72
7.1.190.0000.01015.59
7.1.180.0030.00815.72
7.1.170.0080.00315.75
7.1.160.0040.00415.81
7.1.150.0030.00715.83
7.1.140.0080.00315.90
7.1.130.0070.00415.84
7.1.120.0000.01015.70
7.1.110.0090.00315.75
7.1.100.0070.00516.94
7.1.90.0070.00315.68
7.1.80.0100.00015.64
7.1.70.0050.00516.52
7.1.60.0080.00817.48
7.1.50.0070.00916.25
7.1.40.0030.00915.80
7.1.30.0000.01015.87
7.1.20.0080.00015.80
7.1.10.0030.00615.86
7.1.00.0020.02119.05
7.0.330.0030.00715.39
7.0.320.0030.00715.27
7.0.310.0030.00615.12
7.0.300.0050.00515.28
7.0.290.0030.00715.34
7.0.280.0000.01115.11
7.0.270.0040.00715.37
7.0.260.0060.00315.31
7.0.250.0000.00915.26
7.0.240.0030.00715.42
7.0.230.0060.00615.23
7.0.220.0000.00815.19
7.0.210.0000.01015.23
7.0.200.0020.00715.93
7.0.190.0000.01415.39
7.0.180.0030.01015.16
7.0.170.0030.00615.25
7.0.160.0040.00415.43
7.0.150.0000.01215.46
7.0.140.0090.03618.59
7.0.130.0000.01015.35
7.0.120.0000.00815.52
7.0.110.0070.00415.36
7.0.100.0100.00315.19
7.0.90.0050.00315.32
7.0.80.0030.00515.37
7.0.70.0000.01015.23
7.0.60.0110.01817.71
7.0.50.0050.03816.57
7.0.40.0070.04516.79
7.0.30.0150.02216.94
7.0.20.0170.02716.85
7.0.10.0140.03716.80
7.0.00.0040.02416.80
5.6.380.0030.00614.64
5.6.370.0090.00314.21
5.6.360.0110.00314.32
5.6.350.0030.01014.74
5.6.340.0040.00814.05
5.6.330.0070.00713.95
5.6.320.0080.00314.36
5.6.310.0100.00314.53
5.6.300.0030.00914.65
5.6.290.0000.01114.59
5.6.280.0050.04017.73
5.6.270.0060.00614.61
5.6.260.0040.00814.67
5.6.250.0000.01514.40
5.6.240.0040.01014.65
5.6.230.0070.00714.41
5.6.220.0030.00614.34
5.6.210.0050.03717.51
5.6.200.0050.02916.21
5.6.190.0050.04517.29
5.6.180.0130.04317.33
5.6.170.0120.02417.49
5.6.160.0080.04317.34
5.6.150.0080.04216.36
5.6.140.0020.05016.22
5.6.130.0050.03016.16
5.6.120.0050.03617.58
5.6.110.0120.03917.63
5.6.100.0050.02717.61
5.6.90.0120.04017.76
5.6.80.0100.03717.26
5.6.70.0030.00914.13
5.6.60.0000.01114.15
5.6.50.0050.00614.13
5.6.40.0090.00014.38
5.6.30.0040.00814.20
5.6.20.0030.00914.07
5.6.10.0000.01214.09
5.6.00.0080.00614.11
5.5.380.0000.00911.16
5.5.370.0040.00411.05
5.5.360.0000.00611.28
5.5.350.0020.04515.88
5.5.340.0030.02314.56
5.5.330.0050.02115.94
5.5.320.0160.02415.75
5.5.310.0170.04415.71
5.5.300.0050.04214.50
5.5.290.0020.03414.62
5.5.280.0070.04315.90
5.5.270.0030.04816.02
5.5.260.0080.03916.07
5.5.250.0070.04515.86
5.5.240.0050.04015.80
5.5.230.0050.00311.30
5.5.220.0030.00711.08
5.5.210.0030.00711.20
5.5.200.0000.01011.21
5.5.190.0000.00811.00
5.5.180.0030.00611.14
5.5.170.0000.00710.89
5.5.160.0000.00610.89
5.5.150.0030.00611.14
5.5.140.0030.00711.23
5.5.130.0000.00611.21
5.5.120.0000.00811.25
5.5.110.0040.00411.04
5.5.100.0040.00410.85
5.5.90.0000.00811.13
5.5.80.0070.00311.38
5.5.70.0000.01010.96
5.5.60.0060.00610.89
5.5.50.0000.00610.85
5.5.40.0000.00711.10
5.5.30.0040.00711.08
5.5.20.0060.00311.04
5.5.10.0000.00711.22
5.5.00.0040.00410.95
5.4.450.0860.01715.15
5.4.440.0870.02315.19
5.4.430.0810.02315.09
5.4.420.0830.02815.18
5.4.410.0980.02215.23
5.4.400.0870.02215.07
5.4.390.0930.02115.07
5.4.380.0830.02014.97
5.4.370.0830.02015.13
5.4.360.0920.02314.72
5.4.350.0940.02414.98
5.4.340.0070.03215.06
5.4.330.0030.00610.68
5.4.320.0050.02314.88
5.4.310.0230.03114.98
5.4.300.1010.02115.05
5.4.290.0950.02415.02
5.4.280.0780.02815.08
5.4.270.0870.02415.07
5.4.260.0980.02114.91
5.4.250.0850.02014.86
5.4.240.0970.02014.85
5.4.230.0970.01914.75
5.4.220.0950.02514.83
5.4.210.0860.02414.88
5.4.200.0580.02814.90
5.4.190.0020.02615.02
5.4.180.0000.03614.87
5.4.170.0730.02615.10
5.4.160.0800.02314.88
5.4.150.0950.02214.92
5.4.140.0780.02213.61
5.4.130.0860.02313.45
5.4.120.0930.02513.66
5.4.110.0940.02613.52
5.4.100.0940.02213.80
5.4.90.0950.02213.75
5.4.80.0850.02513.72
5.4.70.0850.02313.56
5.4.60.0280.02513.40
5.4.50.0050.03813.72
5.4.40.0110.03813.60
5.4.30.0780.02513.69
5.4.20.0890.02513.71
5.4.10.0870.01513.67
5.4.00.0960.02013.50
5.3.290.0830.02512.62
5.3.280.0880.02212.58
5.3.270.0820.02312.50
5.3.260.0990.02212.67
5.3.250.0770.02012.59
5.3.240.0850.02312.68
5.3.230.0980.02212.52
5.3.220.0040.02512.46
5.3.210.0080.03012.52
5.3.200.0060.02512.39
5.3.190.0430.02112.43
5.3.180.0900.03012.56
5.3.170.0840.02012.55
5.3.160.0870.02012.54
5.3.150.0830.02112.61
5.3.140.0880.02312.57
5.3.130.0910.01812.45
5.3.120.0940.02712.44
5.3.110.0930.02612.59
5.3.100.0870.01812.34
5.3.90.0860.01912.21
5.3.80.0500.02712.28
5.3.70.0030.03312.25
5.3.60.0050.03812.26
5.3.50.0780.01512.21
5.3.40.0900.01612.36
5.3.30.0920.01812.21
5.3.20.0880.01812.05
5.3.10.1010.02012.00
5.3.00.0960.01811.98
5.2.170.0680.01810.72
5.2.160.0870.01710.73
5.2.150.0740.01710.67
5.2.140.0720.02010.65
5.2.130.0680.01610.64
5.2.120.0700.01710.71
5.2.110.0080.02010.66
5.2.100.0020.02310.69
5.2.90.0030.03510.63
5.2.80.0240.02010.63
5.2.70.0720.01310.63
5.2.60.0620.01710.69
5.2.50.0690.01310.70
5.2.40.0650.01810.74
5.2.30.0650.02110.59
5.2.20.0560.02010.61
5.2.10.0570.01410.52
5.2.00.0550.01610.49
5.1.60.0690.01610.19
5.1.50.0700.01610.19
5.1.40.0560.01310.19
5.1.30.0530.01810.41
5.1.20.0670.01710.31
5.1.10.0490.01310.19
5.1.00.0010.01510.19
5.0.50.0040.01610.19
5.0.40.0020.01210.19
5.0.30.0020.01710.19
5.0.20.0020.01210.19
5.0.10.0000.01310.19
5.0.00.0100.02010.19
4.4.90.0270.00910.19
4.4.80.0250.01010.19
4.4.70.0300.00810.19
4.4.60.0270.00710.19
4.4.50.0270.01110.19
4.4.40.0250.01210.19
4.4.30.0200.01210.19
4.4.20.0280.00810.19
4.4.10.0230.01010.19
4.4.00.0350.01510.19
4.3.110.0300.01010.19
4.3.100.0300.00610.19
4.3.90.0230.00810.19
4.3.80.0340.01810.19
4.3.70.0240.00710.19
4.3.60.0230.00810.19
4.3.50.0290.00810.19
4.3.40.0240.01310.19
4.3.30.0130.01010.19
4.3.20.0130.01110.19
4.3.10.0160.01110.19
4.3.00.0130.01210.19

preferences:
49.79 ms | 401 KiB | 5 Q