3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $publicProperty = 'bar'; } class FooWrapper extends Foo { private $wrapped; public function __construct(Foo $wrapped) { $this->wrapped = $wrapped; unset($this->publicProperty); } public function __get($name) { echo 'Getting property ' . $name . PHP_EOL; return $this->wrapped->$name; } public function __set($name, $value) { echo 'Setting property ' . $name . ' to ' . $value . PHP_EOL; return $this->wrapped->$name = $value; } } $foo = new FooWrapper(new Foo()); echo $foo->publicProperty; echo $foo->publicProperty = 'text';

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.0070.01118.31
8.3.50.0070.00921.91
8.3.40.0080.00618.84
8.3.30.0040.01218.84
8.3.20.0070.00718.73
8.3.10.0030.00520.57
8.3.00.0060.00323.66
8.2.180.0150.00616.47
8.2.170.0070.00722.96
8.2.160.0130.00722.08
8.2.150.0070.00724.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0000.00819.83
8.2.110.0100.01321.02
8.2.100.0060.00617.72
8.2.90.0040.00419.19
8.2.80.0030.00517.97
8.2.70.0060.00317.38
8.2.60.0000.00817.93
8.2.50.0090.00018.07
8.2.40.0000.00818.22
8.2.30.0040.00419.75
8.2.20.0090.00017.73
8.2.10.0070.00017.68
8.2.00.0000.00717.56
8.1.280.0070.01325.92
8.1.270.0050.00323.99
8.1.260.0110.00726.35
8.1.250.0040.00428.09
8.1.240.0070.01422.46
8.1.230.0090.00320.61
8.1.220.0080.00018.77
8.1.210.0060.00318.88
8.1.200.0030.00617.35
8.1.190.0030.00617.66
8.1.180.0060.00318.10
8.1.170.0040.00418.84
8.1.160.0080.00018.95
8.1.150.0000.00718.64
8.1.140.0040.00417.46
8.1.130.0070.00017.89
8.1.120.0030.00417.37
8.1.110.0040.00417.34
8.1.100.0040.00417.36
8.1.90.0040.00417.49
8.1.80.0070.00017.35
8.1.70.0070.00017.39
8.1.60.0000.00817.61
8.1.50.0030.00617.55
8.1.40.0000.00817.59
8.1.30.0060.00317.64
8.1.20.0060.00317.68
8.1.10.0040.00417.49
8.1.00.0030.00617.52
8.0.300.0040.00419.99
8.0.290.0020.00516.75
8.0.280.0030.00318.43
8.0.270.0040.00417.26
8.0.260.0000.00716.73
8.0.250.0040.00417.06
8.0.240.0060.00316.95
8.0.230.0030.00516.90
8.0.220.0000.00717.00
8.0.210.0000.00716.98
8.0.200.0030.00316.91
8.0.190.0030.00517.05
8.0.180.0040.00417.02
8.0.170.0030.00616.94
8.0.160.0080.00016.92
8.0.150.0030.00716.92
8.0.140.0000.00816.86
8.0.130.0040.00413.38
8.0.120.0050.00316.91
8.0.110.0040.00416.79
8.0.100.0000.00716.90
8.0.90.0040.00416.94
8.0.80.0030.01216.86
8.0.70.0050.00216.83
8.0.60.0030.00516.88
8.0.50.0050.00217.01
8.0.30.0130.00617.12
8.0.20.0050.01717.40
8.0.10.0030.00516.92
8.0.00.0090.00916.88
7.4.330.0000.00514.66
7.4.320.0000.00616.50
7.4.300.0060.00016.52
7.4.290.0000.00816.59
7.4.280.0060.00316.43
7.4.270.0000.00716.50
7.4.260.0050.00013.39
7.4.250.0040.00416.55
7.4.240.0000.00716.62
7.4.230.0070.00016.68
7.4.220.0060.01616.56
7.4.210.0050.01016.47
7.4.200.0000.00716.40
7.4.190.0040.00416.70
7.4.160.0060.01016.59
7.4.150.0090.01517.40
7.4.140.0110.00717.86
7.4.130.0100.01116.54
7.4.120.0100.00716.65
7.4.110.0090.00916.58
7.4.100.0060.01316.44
7.4.90.0090.00916.49
7.4.80.0040.01319.04
7.4.70.0030.01416.57
7.4.60.0120.00616.50
7.4.50.0030.00316.46
7.4.40.0000.01522.27
7.4.30.0070.01016.67
7.4.10.0040.01816.37
7.4.00.0030.01415.58
7.3.330.0050.00013.18
7.3.320.0000.00613.25
7.3.310.0030.00316.39
7.3.300.0070.00016.29
7.3.290.0120.00316.32
7.3.280.0130.00616.36
7.3.270.0130.00317.40
7.3.260.0080.01018.24
7.3.250.0150.00316.40
7.3.240.0090.00916.53
7.3.230.0090.00616.39
7.3.210.0030.01516.36
7.3.200.0060.01019.39
7.3.190.0070.01016.56
7.3.180.0120.00916.41
7.3.170.0100.00616.45
7.3.160.0140.00316.38
7.3.130.0110.00716.57
7.3.120.0120.00515.39
7.3.110.0070.00716.41
7.3.100.0100.00716.29
7.3.90.0090.00416.39
7.3.80.0130.00316.54
7.3.70.0060.00616.26
7.3.60.0040.01116.36
7.3.50.0000.01516.34
7.3.40.0040.01116.43
7.3.30.0000.01016.34
7.3.20.0070.01018.18
7.3.10.0090.00517.58
7.3.00.0090.00517.35
7.2.330.0070.01016.79
7.2.320.0000.01616.53
7.2.310.0110.00816.78
7.2.300.0060.01016.64
7.2.290.0130.00316.64
7.2.260.0070.01416.28
7.2.250.0000.02116.71
7.2.240.0100.00316.67
7.2.230.0050.00516.55
7.2.220.0000.01116.47
7.2.210.0060.00616.47
7.2.200.0000.01316.57
7.2.190.0050.00816.56
7.2.180.0040.01116.51
7.2.170.0080.00416.47
7.2.160.0100.00316.51
7.2.150.0030.01318.48
7.2.140.0080.00418.39
7.2.130.0080.00517.65
7.2.120.0060.00917.63
7.2.110.0020.01117.63
7.2.100.0050.01017.66
7.2.90.0050.00917.71
7.2.80.0080.00517.61
7.2.70.0040.00917.73
7.2.60.0050.00717.45
7.2.50.0080.00517.71
7.2.40.0080.00417.73
7.2.30.0050.01017.81
7.2.20.0100.00517.58
7.2.10.0020.00917.47
7.2.00.0070.00918.29
7.1.330.0120.00417.25
7.1.320.0000.01317.45
7.1.310.0030.01017.41
7.1.300.0040.00817.54
7.1.290.0070.00317.43
7.1.280.0070.00717.32
7.1.270.0070.00717.32
7.1.260.0000.01017.25
7.1.250.0040.00916.53
7.1.240.0060.00617.32
7.1.230.0070.00717.45
7.1.220.0030.01117.41
7.1.210.0040.01117.20
7.1.200.0060.00616.49
7.1.190.0080.00617.27
7.1.180.0070.00717.38
7.1.170.0060.00617.21
7.1.160.0030.00717.24
7.1.150.0090.00917.24
7.1.140.0060.01017.33
7.1.130.0070.00717.36
7.1.120.0070.00717.34
7.1.110.0090.00617.32
7.1.100.0040.00617.76
7.1.90.0110.00717.45
7.1.80.0040.01117.39
7.1.70.0060.00417.26
7.1.60.0100.00618.45
7.1.50.0070.01117.13
7.1.40.0120.00617.23
7.1.30.0030.00617.31
7.1.20.0030.00717.35
7.1.10.0110.00417.21
7.1.00.0030.04219.93
7.0.330.0000.01416.82
7.0.320.0030.01016.88
7.0.310.0060.00316.95
7.0.300.0100.00316.90
7.0.290.0050.00917.13
7.0.280.0070.01016.91
7.0.270.0030.01017.17
7.0.260.0090.00916.86
7.0.250.0030.01217.13
7.0.240.0040.01117.01
7.0.230.0070.00717.02
7.0.220.0100.00317.16
7.0.210.0040.00716.88
7.0.200.0040.00716.81
7.0.190.0030.01417.07
7.0.180.0040.01117.06
7.0.170.0070.00417.13
7.0.160.0060.00617.11
7.0.150.0030.01017.08
7.0.140.0000.04019.51
7.0.130.0030.00616.86
7.0.120.0030.00616.96
7.0.110.0030.01316.97
7.0.100.0060.00917.13
7.0.90.0040.00717.07
7.0.80.0090.00617.01
7.0.70.0070.00717.01
7.0.60.0150.04518.46
7.0.50.0110.04017.42
7.0.40.0130.03217.68
7.0.30.0140.04217.63
7.0.20.0100.03617.62
7.0.10.0190.03417.55
7.0.00.0150.03017.53
5.6.400.0070.01016.07
5.6.390.0070.01016.04
5.6.380.0080.00916.09
5.6.370.0100.00316.16
5.6.360.0080.00415.98
5.6.350.0090.00916.00
5.6.340.0060.01215.68
5.6.330.0090.00316.09
5.6.320.0060.00616.03
5.6.310.0070.00716.12
5.6.300.0090.00316.21
5.6.290.0070.00716.07
5.6.280.0060.03818.48
5.6.270.0060.00916.22
5.6.260.0080.00315.84
5.6.250.0090.00615.85
5.6.240.0150.00315.98
5.6.230.0040.01116.21
5.6.220.0030.00916.06
5.6.210.0060.03418.21
5.6.200.0050.03817.04
5.6.190.0120.03018.34
5.6.180.0210.04118.26
5.6.170.0130.04618.37
5.6.160.0120.03518.19
5.6.150.0200.04318.21
5.6.140.0180.03917.99
5.6.130.0110.03418.25
5.6.120.0120.03018.22
5.6.110.0050.04318.08
5.6.100.0260.03818.19
5.6.90.0130.03818.18
5.6.80.0050.04317.84
5.6.70.0070.04217.78
5.6.60.0060.02817.84
5.6.50.0020.03117.81
5.6.40.0030.04717.74
5.6.30.0080.03517.94
5.6.20.0050.02517.63
5.6.10.0050.02817.76
5.6.00.0060.04517.78
5.5.380.0130.00615.67
5.5.370.0100.01015.95
5.5.360.0080.01215.94
5.5.350.0090.04118.04
5.5.340.0120.04316.96
5.5.330.0210.03318.20
5.5.320.0160.03318.08
5.5.310.0170.04218.22
5.5.300.0120.03618.05
5.5.290.0150.04017.74
5.5.280.0120.03517.92
5.5.270.0100.02718.13
5.5.260.0080.04018.13
5.5.250.0070.04617.78
5.5.240.0080.02717.71
5.5.230.0100.04517.78
5.5.220.0060.03317.65
5.5.210.0020.03917.70
5.5.200.0050.04817.65
5.5.190.0090.04317.67
5.5.180.0030.04017.65
5.5.170.0110.00615.80
5.5.160.0090.02417.54
5.5.150.0080.04317.67
5.5.140.0080.03917.71
5.5.130.0120.04017.72
5.5.120.0020.02917.58
5.5.110.0020.02717.64
5.5.100.0030.03117.64
5.5.90.0080.04017.63
5.5.80.0030.03617.61
5.5.70.0020.03017.39
5.5.60.0030.03717.53
5.5.50.0070.04217.56
5.5.40.0090.04017.60
5.5.30.0030.03817.54
5.5.20.0070.03417.60
5.5.10.0070.02817.59
5.5.00.0030.02817.75
5.4.450.0130.04416.47
5.4.440.0150.03816.52
5.4.430.0040.02416.55
5.4.420.0070.04416.54
5.4.410.0080.03716.37
5.4.400.0080.03016.32
5.4.390.0070.04116.40
5.4.380.0080.04016.35
5.4.370.0050.02716.20
5.4.360.0060.03016.35
5.4.350.0070.03816.39
5.4.340.0040.02716.23
5.4.330.0080.00413.54
5.4.320.0040.03916.28
5.4.310.0020.02916.20
5.4.300.0030.03816.20
5.4.290.0020.04516.37
5.4.280.0050.04016.35
5.4.270.0000.03016.34
5.4.260.0040.04116.23
5.4.250.0030.03516.21
5.4.240.0050.03216.33
5.4.230.0020.04416.36
5.4.220.0070.03216.35
5.4.210.0070.02516.39
5.4.200.0050.04216.32
5.4.190.0030.03016.21
5.4.180.0060.02816.27
5.4.170.0050.02616.21
5.4.160.0070.02116.30
5.4.150.0050.04616.22
5.4.140.0050.03814.96
5.4.130.0070.03314.94
5.4.120.0050.03715.01
5.4.110.0030.04015.13
5.4.100.0030.02515.02
5.4.90.0040.02915.13
5.4.80.0040.02215.13
5.4.70.0040.03214.98
5.4.60.0030.04215.01
5.4.50.0080.02214.95
5.4.40.0050.04314.96
5.4.30.0050.03614.90
5.4.20.0050.03414.98
5.4.10.0080.03714.99
5.4.00.0020.03514.74
5.3.290.0020.03914.11
5.3.280.0030.03314.03
5.3.270.0100.02414.02
5.3.260.0100.02314.08
5.3.250.0040.04014.04
5.3.240.0020.04014.08
5.3.230.0080.04014.08
5.3.220.0080.04014.09
5.3.210.0030.03314.06
5.3.200.0070.03514.02
5.3.190.0080.02214.01
5.3.180.0050.02414.07
5.3.170.0050.04214.06
5.3.160.0020.04214.01
5.3.150.0090.03514.05
5.3.140.0030.03914.13
5.3.130.0000.04514.04
5.3.120.0020.04514.05
5.3.110.0070.03714.06
5.3.100.0020.04413.81
5.3.90.0000.03913.79
5.3.80.0030.04013.81
5.3.70.0070.03713.81
5.3.60.0050.04213.80
5.3.50.0050.02313.71
5.3.40.0020.03213.76
5.3.30.0000.03713.73
5.3.20.0050.03213.64
5.3.10.0050.02913.61
5.3.00.0080.02113.67
5.2.170.0000.05012.40
5.2.160.0030.05312.40
5.2.150.0030.05712.40
5.2.140.0030.06012.40
5.2.130.0030.05712.40
5.2.120.0030.05712.40
5.2.110.0030.04012.40
5.2.100.0070.06012.40
5.2.90.0000.04712.40
5.2.80.0000.05312.40
5.2.70.0000.06312.40
5.2.60.0030.04012.40
5.2.50.0000.05712.40
5.2.40.0070.03312.40
5.2.30.0000.03312.40
5.2.20.0030.02712.40
5.2.10.0070.06012.40
5.2.00.0030.04312.40
5.1.60.0070.04712.40
5.1.50.0030.03312.40
5.1.40.0100.04312.40
5.1.30.0070.04712.40
5.1.20.0030.05712.40
5.1.10.0030.06012.40
5.1.00.0030.05312.40
5.0.50.0000.04712.40
5.0.40.0000.04712.40
5.0.30.0130.06312.40
5.0.20.0000.04712.40
5.0.10.0000.05012.40
5.0.00.0070.05712.40
4.4.90.0070.01712.40
4.4.80.0030.03012.40
4.4.70.0000.04012.40
4.4.60.0000.03312.40
4.4.50.0030.03712.40
4.4.40.0000.05012.40
4.4.30.0000.03312.40
4.4.20.0000.02012.40
4.4.10.0000.03012.40
4.4.00.0070.04712.40
4.3.110.0070.03312.40
4.3.100.0000.03712.40
4.3.90.0000.03312.40
4.3.80.0030.05312.40
4.3.70.0070.02312.40
4.3.60.0030.03012.40
4.3.50.0000.03712.40
4.3.40.0030.04712.40
4.3.30.0000.04312.40
4.3.20.0030.03012.40
4.3.10.0000.04012.40
4.3.00.0000.02312.40

preferences:
52.04 ms | 401 KiB | 5 Q