3v4l.org

run code in 300+ PHP versions simultaneously
<?php function change_this(&$self = NULL) { $self = (object) array ('foo' => 100); } class test_case 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_case; $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.0160.00616.75
8.3.60.0110.00716.38
8.3.50.0120.00917.40
8.3.40.0100.00718.90
8.3.30.0140.00718.46
8.3.20.0040.00418.69
8.3.10.0090.00020.46
8.3.00.0030.00519.38
8.2.180.0090.01218.54
8.2.170.0090.00622.96
8.2.160.0090.00620.35
8.2.150.0050.00324.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00020.88
8.2.110.0090.00022.25
8.2.100.0100.00317.72
8.2.90.0000.00817.75
8.2.80.0070.00317.97
8.2.70.0030.00618.03
8.2.60.0000.00917.93
8.2.50.0080.00018.10
8.2.40.0040.00420.45
8.2.30.0040.00418.03
8.2.20.0030.00619.49
8.2.10.0000.00817.74
8.2.00.0050.00217.52
8.1.280.0070.00725.92
8.1.270.0040.01524.66
8.1.260.0030.00626.35
8.1.250.0030.00528.09
8.1.240.0030.00622.45
8.1.230.0080.00819.13
8.1.220.0030.00617.74
8.1.210.0000.00821.02
8.1.200.0000.00917.10
8.1.190.0050.00317.10
8.1.180.0060.00318.10
8.1.170.0090.00018.28
8.1.160.0000.00718.73
8.1.150.0000.00718.58
8.1.140.0000.00717.38
8.1.130.0000.00717.83
8.1.120.0060.00317.45
8.1.110.0000.00717.43
8.1.100.0050.00217.35
8.1.90.0000.00717.44
8.1.80.0070.00017.37
8.1.70.0000.00717.31
8.1.60.0060.00317.57
8.1.50.0030.00517.34
8.1.40.0030.00517.54
8.1.30.0000.00717.60
8.1.20.0030.00517.69
8.1.10.0060.00317.61
8.1.00.0070.00017.54
8.0.300.0040.00419.90
8.0.290.0070.00016.75
8.0.280.0000.00718.38
8.0.270.0000.00717.18
8.0.260.0000.00616.91
8.0.250.0040.00416.94
8.0.240.0080.00016.80
8.0.230.0000.00716.92
8.0.220.0070.00016.86
8.0.210.0030.00316.84
8.0.200.0000.00616.95
8.0.190.0040.00416.92
8.0.180.0000.00716.80
8.0.170.0000.00816.91
8.0.160.0050.00216.87
8.0.150.0050.00216.88
8.0.140.0060.00316.74
8.0.130.0000.00513.27
8.0.120.0040.00416.84
8.0.110.0040.00416.89
8.0.100.0080.00016.91
8.0.90.0000.00716.68
8.0.80.0030.01216.87
8.0.70.0020.00516.74
8.0.60.0040.00416.71
8.0.50.0080.00016.84
8.0.30.0110.00817.09
8.0.20.0100.00917.03
8.0.10.0030.00517.02
8.0.00.0060.01216.60
7.4.330.0030.00312.82
7.4.320.0000.00616.39
7.4.300.0000.00616.51
7.4.290.0050.00516.56
7.4.280.0030.00616.59
7.4.270.0030.00316.39
7.4.260.0030.00313.21
7.4.250.0060.00316.40
7.4.240.0030.00316.44
7.4.230.0070.00016.47
7.4.220.0140.01016.41
7.4.210.0070.00916.57
7.4.200.0040.00416.57
7.4.190.0080.00016.39
7.4.160.0000.01516.54
7.4.150.0070.01016.41
7.4.140.0080.01016.55
7.4.130.0060.01116.54
7.4.120.0110.00816.35
7.4.110.0130.00416.48
7.4.100.0090.00916.62
7.4.90.0100.00916.48
7.4.80.0160.00619.39
7.4.70.0100.00716.54
7.4.60.0030.01316.41
7.4.50.0070.00516.36
7.4.40.0100.00416.53
7.4.30.0170.00016.47
7.4.00.0070.00714.86
7.3.330.0030.00313.33
7.3.320.0000.00513.21
7.3.310.0040.00416.25
7.3.300.0000.00616.38
7.3.290.0120.00316.35
7.3.280.0070.01016.33
7.3.270.0120.00616.62
7.3.260.0170.00016.38
7.3.250.0100.00816.27
7.3.240.0030.01416.56
7.3.230.0060.01016.57
7.3.210.0090.00616.40
7.3.200.0170.00016.53
7.3.190.0090.00816.36
7.3.180.0130.00316.46
7.3.170.0130.00316.61
7.3.160.0130.00916.24
7.3.120.0090.00617.15
7.3.110.0110.00417.15
7.3.100.0040.01117.15
7.3.90.0030.01317.15
7.3.80.0080.00317.15
7.3.70.0000.01417.15
7.3.60.0090.00617.15
7.3.50.0030.01417.15
7.3.40.0060.00617.15
7.3.30.0140.00317.15
7.3.20.0080.00817.15
7.3.10.0070.01017.15
7.3.00.0100.00717.15
7.2.330.0130.00616.49
7.2.320.0060.01716.36
7.2.310.0040.01716.69
7.2.300.0140.00316.73
7.2.290.0060.01016.57
7.2.240.0060.00917.15
7.2.230.0070.01017.15
7.2.220.0030.01017.15
7.2.210.0090.00617.15
7.2.200.0040.00717.15
7.2.190.0060.00617.15
7.2.180.0070.00717.15
7.2.170.0030.01317.15
7.2.160.0080.00417.15
7.2.150.0000.01117.15
7.2.140.0070.01117.15
7.2.130.0000.01417.15
7.2.120.0070.01017.15
7.2.110.0030.01417.15
7.2.100.0000.01217.15
7.2.90.0090.00617.15
7.2.80.0060.00917.15
7.2.70.0120.00317.15
7.2.60.0030.01017.02
7.2.50.0030.01417.15
7.2.40.0090.00617.15
7.2.30.0070.00717.15
7.2.20.0030.01317.15
7.2.10.0030.01017.15
7.2.00.0070.01017.15
7.1.330.0030.01417.15
7.1.320.0070.01017.15
7.1.310.0030.01517.15
7.1.300.0030.01317.15
7.1.290.0080.00817.15
7.1.280.0130.00317.15
7.1.270.0070.01117.15
7.1.260.0060.00917.15
7.1.250.0070.00317.15
7.1.200.0060.00615.81
7.1.70.0000.00917.16
7.1.60.0120.00919.40
7.1.50.0000.01416.77
7.1.00.0070.07322.36
7.0.200.0080.00316.88
7.0.140.0030.07021.95
7.0.120.0070.06722.05
7.0.60.0030.08321.71
7.0.50.0070.08017.86
7.0.40.0100.04020.11
7.0.30.0200.07320.23
7.0.20.0370.08020.07
7.0.10.0030.06020.33
7.0.00.0130.07320.22
5.6.280.0070.06721.11
5.6.210.0100.07320.61
5.6.200.0030.08718.19
5.6.190.0030.05320.77
5.6.180.0300.05320.61
5.6.170.0230.07320.71
5.6.160.0030.09020.43
5.6.150.0030.04318.23
5.6.140.0070.05018.14
5.6.130.0000.08018.16
5.6.120.0100.07720.99
5.6.110.0030.04720.99
5.6.100.0100.07721.14
5.6.90.0070.08320.97
5.6.80.0130.07320.39
5.5.350.0000.08020.43
5.5.340.0030.04018.00
5.5.330.0070.08720.33
5.5.320.0200.05020.21
5.5.310.0270.08720.32
5.5.300.0070.08317.93
5.5.290.0170.07017.94
5.5.280.0070.09020.88
5.5.270.0270.07020.77
5.5.260.0070.04320.85
5.5.250.0170.06320.62
5.5.240.0130.07320.07
5.4.450.0030.08019.20
5.4.440.0030.08719.47
5.4.430.0130.07319.53
5.4.420.0100.05019.56
5.4.410.0070.04319.11
5.4.400.0030.04319.16
5.4.390.0070.03718.98
5.4.380.0070.04718.87
5.4.370.0130.06719.22
5.4.360.0100.04018.85
5.4.350.0100.06718.98
5.4.340.0070.06718.97
5.4.320.0070.06718.85
5.4.310.0100.04318.89
5.4.300.0100.07319.14
5.4.290.0100.07319.20
5.4.280.0070.07719.07
5.4.270.0130.08018.97
5.4.260.0130.04319.15
5.4.250.0070.08019.07
5.4.240.0070.06319.08
5.4.230.0070.04319.20
5.4.220.0230.03718.87
5.4.210.0030.05018.91
5.4.200.0000.08019.14
5.4.190.0100.07319.23
5.4.180.0030.05018.91
5.4.170.0030.06718.87
5.4.160.0000.04319.14
5.4.150.0030.04718.84
5.4.140.0100.06316.49
5.4.130.0030.03716.54
5.4.120.0200.03316.51
5.4.110.0070.06716.59
5.4.100.0030.05716.58
5.4.90.0030.07316.72
5.4.80.0030.05016.44
5.4.70.0070.07716.47
5.4.60.0070.04716.37
5.4.50.0100.04716.44
5.4.40.0000.07316.50
5.4.30.0200.03016.64
5.4.20.0030.05316.42
5.4.10.0070.05316.43
5.4.00.0030.04015.75
5.3.290.0100.07314.71
5.3.280.0030.04014.59
5.3.270.0070.04314.70
5.3.260.0100.04014.61
5.3.250.0100.04014.68
5.3.240.0030.05014.66
5.3.230.0030.07014.61
5.3.220.0100.04314.57
5.3.210.0030.06314.64
5.3.200.0170.06714.71
5.3.190.0070.04014.63
5.3.180.0100.06714.57
5.3.170.0070.07314.60
5.3.160.0070.04314.61
5.3.150.0130.04014.56
5.3.140.0030.05014.59
5.3.130.0030.04314.55
5.3.120.0000.08714.71
5.3.110.0130.07014.58
5.3.100.0100.04713.97
5.3.90.0030.04014.05
5.3.80.0100.03313.94
5.3.70.0070.05013.94
5.3.60.0030.07714.05
5.3.50.0030.07713.95
5.3.40.0100.06013.98
5.3.30.0100.06313.91
5.3.20.0070.03313.70
5.3.10.0070.04013.74
5.3.00.0000.04713.66
5.2.170.0030.05011.20
5.2.160.0000.06711.14
5.2.150.0030.03311.20
5.2.140.0000.04311.20
5.2.130.0030.03711.18
5.2.120.0030.04311.16
5.2.110.0070.02711.16
5.2.100.0030.06311.18
5.2.90.0200.03311.03
5.2.80.0070.05311.24
5.2.70.0100.06011.09
5.2.60.0030.05311.07
5.2.50.0070.06311.02
5.2.40.0070.06311.02
5.2.30.0070.06010.89
5.2.20.0030.03311.12
5.2.10.0100.05310.89
5.2.00.0100.05010.76
5.1.60.0030.0309.97
5.1.50.0070.0539.96
5.1.40.0000.0479.96
5.1.30.0030.03310.41
5.1.20.0030.03010.39
5.1.10.0000.03010.12
5.1.00.0000.02710.05
5.0.50.0000.0208.59
5.0.40.0000.0208.56
5.0.30.0000.0338.25
5.0.20.0030.0208.16
5.0.10.0000.0208.15
5.0.00.0000.0308.14
4.4.90.0000.0407.75
4.4.80.0030.0137.75
4.4.70.0030.0177.75
4.4.60.0000.0207.75
4.4.50.0000.0377.75
4.4.40.0000.0577.75
4.4.30.0030.0307.75
4.4.20.0030.0137.75
4.4.10.0070.0137.75
4.4.00.0000.0277.75
4.3.110.0030.0137.75
4.3.100.0000.0177.75
4.3.90.0000.0177.75
4.3.80.0000.0237.75
4.3.70.0000.0137.75
4.3.60.0030.0107.75
4.3.50.0000.0177.75
4.3.40.0000.0237.75
4.3.30.0000.0137.75
4.3.20.0000.0177.75
4.3.10.0000.0177.75
4.3.00.0000.0137.75

preferences:
47.03 ms | 401 KiB | 5 Q