3v4l.org

run code in 300+ PHP versions simultaneously
<?php function change_this(&$self = NULL) { $self = (object) array ('foo' => 100); } class test extends stdClass { public $foo = 1; public function test() { change_this($this); print 'test(): '; var_dump($this); $this->test_this(); } public function test_this() { print 'test_this'; var_dump($this); } } $x = new test; $x->test();

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.01216.49
8.3.60.0130.00718.43
8.3.50.0120.00722.05
8.3.40.0110.00718.54
8.3.30.0070.00718.91
8.3.20.0040.00420.18
8.3.10.0030.00521.80
8.3.00.0040.00422.50
8.2.180.0110.00716.88
8.2.170.0140.00022.96
8.2.160.0060.01220.93
8.2.150.0000.00824.18
8.2.140.0060.00324.66
8.2.130.0050.00226.16
8.2.120.0060.00319.25
8.2.110.0040.00422.20
8.2.100.0150.00017.87
8.2.90.0000.00819.05
8.2.80.0030.00517.97
8.2.70.0030.00617.50
8.2.60.0090.00017.93
8.2.50.0030.00618.07
8.2.40.0000.00818.03
8.2.30.0000.00718.05
8.2.20.0040.00417.66
8.2.10.0090.00017.58
8.2.00.0040.00417.77
8.1.280.0150.00325.92
8.1.270.0160.00421.86
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0080.00024.02
8.1.230.0110.00019.16
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0030.00617.35
8.1.190.0000.00917.53
8.1.180.0080.00018.61
8.1.170.0040.00418.46
8.1.160.0000.00721.85
8.1.150.0040.00418.56
8.1.140.0040.00417.36
8.1.130.0070.00017.65
8.1.120.0070.00017.41
8.1.110.0080.00017.43
8.1.100.0080.00017.40
8.1.90.0070.00017.38
8.1.80.0000.00717.29
8.1.70.0030.00317.35
8.1.60.0040.00417.57
8.1.50.0000.00717.46
8.1.40.0040.00417.50
8.1.30.0040.00417.51
8.1.20.0000.00817.48
8.1.10.0000.00817.61
8.1.00.0080.00017.43
8.0.300.0060.00318.77
8.0.290.0030.00517.16
8.0.280.0000.00818.34
8.0.270.0030.00317.18
8.0.260.0000.00616.92
8.0.250.0000.00716.85
8.0.240.0070.00016.98
8.0.230.0030.00316.93
8.0.220.0080.00016.75
8.0.210.0040.00416.92
8.0.200.0030.00316.90
8.0.190.0030.00316.96
8.0.180.0030.00616.81
8.0.170.0000.00716.83
8.0.160.0040.00416.73
8.0.150.0070.00016.82
8.0.140.0070.00016.84
8.0.130.0030.00313.30
8.0.120.0060.00316.82
8.0.110.0040.00416.71
8.0.100.0040.00416.77
8.0.90.0000.00816.84
8.0.80.0090.00716.88
8.0.70.0050.00216.94
8.0.60.0050.00316.93
8.0.50.0020.00516.84
8.0.30.0070.01317.13
8.0.20.0130.00517.40
8.0.10.0040.00417.02
8.0.00.0080.01416.57
7.4.330.0000.00515.00
7.4.320.0030.00316.44
7.4.300.0060.00016.54
7.4.290.0030.00316.60
7.4.280.0040.00416.49
7.4.270.0000.00816.55
7.4.260.0040.00316.62
7.4.250.0040.00416.55
7.4.240.0020.00616.57
7.4.230.0070.00016.54
7.4.220.0120.00616.52
7.4.210.0080.00716.58
7.4.200.0070.00016.36
7.4.190.0030.00616.61
7.4.160.0110.00516.48
7.4.150.0080.00817.40
7.4.140.0150.00417.86
7.4.130.0140.00316.55
7.4.120.0050.01316.36
7.4.110.0070.01016.60
7.4.100.0060.01616.55
7.4.90.0140.00916.49
7.4.80.0100.00619.39
7.4.70.0090.00916.52
7.4.60.0190.00016.41
7.4.50.0040.00416.48
7.4.40.0070.01122.77
7.4.30.0120.00416.40
7.4.00.0030.01315.06
7.3.330.0050.00013.44
7.3.320.0000.00613.13
7.3.310.0040.00416.40
7.3.300.0070.00016.37
7.3.290.0070.00716.34
7.3.280.0110.00616.33
7.3.270.0100.00717.40
7.3.260.0170.00616.58
7.3.250.0110.00816.42
7.3.240.0120.00416.35
7.3.230.0070.01116.59
7.3.210.0070.01116.55
7.3.200.0130.00419.39
7.3.190.0070.01416.45
7.3.180.0000.01616.39
7.3.170.0060.01116.44
7.3.160.0040.01216.45
7.3.120.0060.01014.65
7.3.110.0070.00714.79
7.3.100.0100.00614.91
7.3.90.0030.01114.82
7.3.80.0080.00414.76
7.3.70.0070.00714.79
7.3.60.0030.01014.61
7.3.50.0100.00714.54
7.3.40.0000.01014.79
7.3.30.0000.01714.57
7.3.20.0060.00616.45
7.3.10.0060.01216.36
7.3.00.0080.00516.35
7.2.330.0120.00616.73
7.2.320.0220.01916.82
7.2.310.0060.01116.55
7.2.300.0070.01016.57
7.2.290.0070.01116.68
7.2.250.0060.00914.50
7.2.240.0100.01014.82
7.2.230.0040.01214.77
7.2.220.0070.01014.89
7.2.210.0030.00714.74
7.2.200.0060.00315.12
7.2.190.0030.01015.00
7.2.180.0060.00614.83
7.2.170.0060.00314.70
7.2.60.0040.01116.94
7.2.00.0060.00619.47
7.1.330.0070.00715.85
7.1.320.0070.00715.46
7.1.310.0070.00415.57
7.1.300.0030.01215.68
7.1.290.0070.00715.71
7.1.280.0070.00715.61
7.1.270.0060.00515.78
7.1.260.0100.00715.60
7.1.200.0090.00315.70
7.1.100.0090.00317.91
7.1.70.0000.00717.30
7.1.60.0030.02019.82
7.1.50.0040.01816.94
7.1.00.0130.08322.32
7.0.200.0120.00016.46
7.0.140.0030.07721.93
7.0.60.0000.04719.82
7.0.50.0070.08017.87
7.0.40.0030.04320.09
7.0.30.0370.06320.26
7.0.20.0370.04720.23
7.0.10.0070.06320.05
7.0.00.0070.05320.20
5.6.280.0100.06720.79
5.6.210.0030.04320.48
5.6.200.0070.07718.27
5.6.190.0170.03020.39
5.6.180.0200.07020.41
5.6.170.0270.08020.39
5.6.160.0100.08720.66
5.6.150.0100.04018.19
5.6.140.0030.08018.21
5.6.130.0100.07018.24
5.6.120.0000.05321.20
5.6.110.0070.03721.11
5.6.100.0030.05021.14
5.6.90.0070.08721.11
5.6.80.0100.03320.30
5.5.350.0230.03720.47
5.5.340.0070.04718.07
5.5.330.0070.08020.21
5.5.320.0230.04720.38
5.5.310.0330.04720.25
5.5.300.0030.07717.98
5.5.290.0070.07018.08
5.5.280.0100.08020.87
5.5.270.0100.07020.88
5.5.260.0200.07320.80
5.5.250.0030.04720.70
5.5.240.0000.07320.20
5.4.450.0700.06319.17
5.4.440.0570.05319.46
5.4.430.1130.03319.27
5.4.420.1170.03319.48
5.4.410.0700.04319.20
5.4.400.0730.04719.20
5.4.390.0600.04318.89
5.4.380.0200.06318.74
5.4.370.0600.06018.73
5.4.360.0470.04718.57
5.4.350.0230.06018.63
5.4.340.0330.05718.82
5.4.320.0090.04012.50
5.4.310.0050.04012.50
5.4.300.0070.04412.51
5.4.290.0060.04212.50
5.4.280.0050.03612.40
5.4.270.0050.03812.40
5.4.260.0100.05018.84
5.4.250.0130.05318.91
5.4.240.0130.06019.05
5.4.230.0270.06018.96
5.4.220.0170.05018.75
5.4.210.0230.06319.03
5.4.200.0100.07718.91
5.4.190.0100.05319.09
5.4.180.0100.07319.03
5.4.170.0130.05018.79
5.4.160.0130.05018.83
5.4.150.0200.07018.79
5.4.140.0000.08016.66
5.4.130.0100.04716.60
5.4.120.0070.06716.40
5.4.110.0170.05716.41
5.4.100.0130.06716.39
5.4.90.0170.05316.46
5.4.80.0100.06316.60
5.4.70.0130.05316.45
5.4.60.0130.05316.54
5.4.50.0170.06716.44
5.4.40.0100.07016.51
5.4.30.0030.05716.49
5.4.20.0170.05716.64
5.4.10.0270.07716.39
5.4.00.0170.06716.04
5.3.290.0080.04212.80
5.3.280.0070.05314.58
5.3.270.0100.08014.59
5.3.260.0270.05014.64
5.3.250.0030.06314.69
5.3.240.0130.07714.70
5.3.230.0070.07714.66
5.3.220.0070.07014.55
5.3.210.0100.05314.39
5.3.200.0170.06014.59
5.3.190.0100.06714.75
5.3.180.0070.06714.64
5.3.170.0170.06014.63
5.3.160.0070.08014.56
5.3.150.0130.07714.49
5.3.140.0100.05314.39
5.3.130.0130.04714.64
5.3.120.0070.08314.52
5.3.110.0000.06314.64
5.3.100.0230.06014.12
5.3.90.0170.07014.01
5.3.80.0100.07014.11
5.3.70.0100.07014.11
5.3.60.0030.05713.91
5.3.50.0030.05714.02
5.3.40.0130.06314.04
5.3.30.0170.04013.89
5.3.20.0170.04013.60
5.3.10.0100.04713.55
5.3.00.0170.06013.86
5.2.170.0130.03711.15
5.2.160.0030.04711.33
5.2.150.0100.04011.11
5.2.140.0130.05011.22
5.2.130.0100.05711.11
5.2.120.0100.04311.08
5.2.110.0070.04011.06
5.2.100.0030.06011.05
5.2.90.0070.05711.09
5.2.80.0030.06311.18
5.2.70.0170.04011.16
5.2.60.0130.05311.04
5.2.50.0130.04311.10
5.2.40.0130.05311.00
5.2.30.0200.04711.06
5.2.20.0170.05011.05
5.2.10.0130.05010.69
5.2.00.0100.04710.80
5.1.60.0100.04710.06
5.1.50.0100.0379.96
5.1.40.0070.05010.13
5.1.30.0170.03710.31
5.1.20.0030.04310.43
5.1.10.0100.03310.14
5.1.00.0100.03310.31
5.0.50.0070.0408.74
5.0.40.0030.0338.45
5.0.30.0000.0478.21
5.0.20.0030.0408.43
5.0.10.0070.0308.22
5.0.00.0000.0508.23
4.4.90.0030.0237.48
4.4.80.0070.0207.48
4.4.70.0030.0277.48
4.4.60.0030.0207.48
4.4.50.0030.0307.48
4.4.40.0030.0377.48
4.4.30.0000.0337.48
4.4.20.0030.0307.48
4.4.10.0030.0237.48
4.4.00.0070.0307.48
4.3.110.0070.0207.48
4.3.100.0000.0237.48
4.3.90.0070.0277.48
4.3.80.0030.0337.48
4.3.70.0070.0237.48
4.3.60.0030.0207.48
4.3.50.0030.0207.48
4.3.40.0000.0437.48
4.3.30.0070.0177.48
4.3.20.0100.0177.48
4.3.10.0000.0237.48
4.3.00.0070.01713.28

preferences:
45.13 ms | 401 KiB | 5 Q