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 = $foo; 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.70.0070.01118.43
8.3.60.0140.00716.75
8.3.50.0120.00918.47
8.3.40.0110.00418.67
8.3.30.0110.00718.76
8.3.20.0060.00318.90
8.3.10.0040.00420.65
8.3.00.0040.00417.63
8.2.180.0170.00317.00
8.2.170.0070.00722.96
8.2.160.0030.01622.26
8.2.150.0070.01324.18
8.2.140.0050.00224.66
8.2.130.0040.00426.16
8.2.120.0000.00819.95
8.2.110.0090.00021.03
8.2.100.0080.00418.03
8.2.90.0000.00919.47
8.2.80.0040.00419.25
8.2.70.0060.00317.63
8.2.60.0040.00418.03
8.2.50.0000.00818.07
8.2.40.0070.00018.16
8.2.30.0050.00318.08
8.2.20.0060.00317.64
8.2.10.0000.00717.81
8.2.00.0000.00817.64
8.1.280.0100.00725.92
8.1.270.0040.00424.66
8.1.260.0080.00026.35
8.1.250.0050.00228.09
8.1.240.0030.00722.42
8.1.230.0070.00420.84
8.1.220.0000.00817.74
8.1.210.0000.00918.88
8.1.200.0000.00917.36
8.1.190.0040.00417.66
8.1.180.0050.00318.10
8.1.170.0000.00718.84
8.1.160.0050.00318.94
8.1.150.0070.00018.61
8.1.140.0030.00617.45
8.1.130.0030.00317.90
8.1.120.0000.00817.55
8.1.110.0040.00417.50
8.1.100.0080.00017.32
8.1.90.0000.00817.37
8.1.80.0040.00417.37
8.1.70.0040.00417.41
8.1.60.0000.00817.61
8.1.50.0080.00017.47
8.1.40.0030.00517.47
8.1.30.0000.00717.66
8.1.20.0080.00017.68
8.1.10.0000.00817.45
8.1.00.0000.00817.50
8.0.300.0000.00720.04
8.0.290.0000.00716.88
8.0.280.0040.00418.45
8.0.270.0000.00717.28
8.0.260.0030.00316.89
8.0.250.0080.00017.04
8.0.240.0070.00317.04
8.0.230.0070.00016.98
8.0.220.0000.00716.97
8.0.210.0000.00716.85
8.0.200.0030.00317.07
8.0.190.0040.00416.93
8.0.180.0030.00417.01
8.0.170.0090.00016.80
8.0.160.0000.00817.02
8.0.150.0000.00716.89
8.0.140.0060.00316.94
8.0.130.0030.00313.37
8.0.120.0080.00016.95
8.0.110.0060.00316.83
8.0.100.0030.00516.80
8.0.90.0070.00016.98
8.0.80.0090.00916.97
8.0.70.0000.00716.75
8.0.60.0000.00717.07
8.0.50.0000.00717.03
8.0.30.0140.01117.28
8.0.20.0140.00817.18
8.0.10.0070.00016.95
8.0.00.0090.00916.96
7.4.330.0050.00012.92
7.4.320.0060.00016.58
7.4.300.0060.00016.56
7.4.290.0000.00716.52
7.4.280.0040.00416.40
7.4.270.0070.00016.62
7.4.260.0000.00613.39
7.4.250.0020.00516.60
7.4.240.0000.00716.55
7.4.230.0030.00316.35
7.4.220.0120.00616.70
7.4.210.0070.00916.52
7.4.200.0000.00716.25
7.4.190.0050.00216.46
7.4.160.0040.01816.51
7.4.150.0120.00616.59
7.4.140.0110.01116.48
7.4.130.0030.01516.59
7.4.120.0140.00616.49
7.4.110.0100.00616.51
7.4.100.0060.01116.50
7.4.90.0150.00416.60
7.4.80.0070.01116.48
7.4.70.0000.01816.43
7.4.60.0110.00616.52
7.4.50.0060.00016.44
7.4.40.0120.00316.41
7.4.30.0070.01416.49
7.4.00.0040.01214.71
7.3.330.0060.00013.43
7.3.320.0030.00313.41
7.3.310.0050.00216.26
7.3.300.0000.00716.44
7.3.290.0040.01116.34
7.3.280.0110.00616.39
7.3.270.0100.00716.43
7.3.260.0090.00816.39
7.3.250.0130.00916.56
7.3.240.0130.00616.61
7.3.230.0060.00916.41
7.3.210.0140.00316.50
7.3.200.0130.01019.39
7.3.190.0100.01016.63
7.3.180.0100.00716.48
7.3.170.0060.01216.45
7.3.160.0090.00616.52
7.3.120.0050.01014.73
7.3.110.0090.00914.63
7.3.100.0070.00714.91
7.3.90.0040.00714.90
7.3.80.0030.00615.02
7.3.70.0040.01214.68
7.3.60.0030.01414.55
7.3.50.0070.00714.77
7.3.40.0070.00715.01
7.3.30.0070.01014.91
7.3.20.0080.00416.71
7.3.10.0030.01016.67
7.3.00.0080.00716.75
7.2.330.0140.00416.40
7.2.320.0170.00716.50
7.2.310.0120.00816.86
7.2.300.0090.01216.48
7.2.290.0080.00816.65
7.2.250.0040.01115.06
7.2.240.0080.01215.16
7.2.230.0070.00315.15
7.2.220.0070.00315.14
7.2.210.0000.01315.25
7.2.200.0030.00615.10
7.2.190.0040.01115.00
7.2.180.0060.00614.97
7.2.170.0060.00915.26
7.2.130.0080.00416.66
7.2.120.0030.00716.88
7.2.110.0080.00416.91
7.2.100.0030.01016.92
7.2.90.0140.00016.70
7.2.80.0120.00316.93
7.2.70.0120.00317.07
7.2.60.0000.01416.65
7.2.50.0040.01116.80
7.2.40.0100.00617.14
7.2.30.0070.01016.98
7.2.20.0060.00617.09
7.2.10.0030.01416.71
7.2.00.0100.00818.22
7.1.330.0000.01415.85
7.1.320.0030.00616.00
7.1.310.0030.01015.81
7.1.300.0080.00415.64
7.1.290.0070.00715.70
7.1.280.0060.00915.55
7.1.270.0060.00615.93
7.1.260.0040.00415.73
7.1.250.0090.00615.61
7.1.240.0040.00915.48
7.1.230.0000.01415.62
7.1.220.0080.00415.84
7.1.210.0090.00615.79
7.1.200.0070.00815.73
7.1.190.0000.01415.78
7.1.180.0130.00015.73
7.1.170.0080.00415.72
7.1.160.0120.00315.83
7.1.150.0090.00615.80
7.1.140.0030.01115.78
7.1.130.0030.00615.64
7.1.120.0030.01315.85
7.1.110.0090.00415.85
7.1.100.0040.00817.03
7.1.90.0090.00615.64
7.1.80.0070.01015.89
7.1.70.0020.00816.51
7.1.60.0080.01017.58
7.1.50.0080.01116.34
7.1.40.0030.00615.63
7.1.30.0030.00615.73
7.1.20.0040.00415.49
7.1.10.0030.00615.79
7.1.00.0050.04018.96
7.0.330.0070.00615.18
7.0.320.0110.00415.38
7.0.310.0090.00315.03
7.0.300.0070.00715.40
7.0.290.0060.00915.18
7.0.280.0040.01215.15
7.0.270.0000.01315.47
7.0.260.0000.01415.41
7.0.250.0070.00315.44
7.0.240.0080.00615.30
7.0.230.0070.01015.33
7.0.220.0000.01615.36
7.0.210.0080.00415.36
7.0.200.0020.00716.07
7.0.190.0000.01315.50
7.0.180.0050.00215.48
7.0.170.0030.01015.32
7.0.160.0000.01315.00
7.0.150.0030.00915.39
7.0.140.0050.04018.67
7.0.130.0000.01215.36
7.0.120.0020.03818.72
7.0.110.0000.00915.43
7.0.100.0080.00615.44
7.0.90.0040.00815.47
7.0.80.0070.00315.21
7.0.70.0060.00615.44
7.0.60.0150.03217.76
7.0.50.0060.02216.76
7.0.40.0070.04216.89
7.0.30.0080.03116.70
7.0.20.0190.03616.72
7.0.10.0100.04016.83
7.0.00.0060.02416.79
5.6.380.0040.00814.52
5.6.370.0090.00314.09
5.6.360.0060.00914.54
5.6.350.0040.01214.60
5.6.340.0030.01014.55
5.6.330.0090.00614.38
5.6.320.0000.01314.49
5.6.310.0000.01114.45
5.6.300.0090.00014.09
5.6.290.0120.00314.13
5.6.280.0030.04017.69
5.6.270.0000.01414.11
5.6.260.0060.00914.61
5.6.250.0040.01114.33
5.6.240.0040.00414.38
5.6.230.0120.00014.36
5.6.220.0090.00314.53
5.6.210.0110.03817.44
5.6.200.0020.03516.24
5.6.190.0060.03217.53
5.6.180.0190.04017.49
5.6.170.0100.03817.69
5.6.160.0080.04517.44
5.6.150.0130.03516.30
5.6.140.0020.03216.27
5.6.130.0050.04516.45
5.6.120.0080.04117.62
5.6.110.0050.04417.50
5.6.100.0080.02317.70
5.6.90.0050.04417.67
5.6.80.0080.02717.40
5.6.70.0060.00614.38
5.6.60.0030.01014.13
5.6.50.0050.01014.29
5.6.40.0060.00614.16
5.6.30.0030.01014.23
5.6.20.0090.00014.18
5.6.10.0070.00314.09
5.6.00.0090.00614.28
5.5.380.0040.00410.84
5.5.370.0060.00611.36
5.5.360.0070.00311.30
5.5.350.0130.01715.81
5.5.340.0060.02314.79
5.5.330.0020.02915.74
5.5.320.0110.02815.71
5.5.310.0150.01815.75
5.5.300.0050.04514.48
5.5.290.0090.04014.43
5.5.280.0010.02415.85
5.5.270.0030.03415.84
5.5.260.0030.04315.90
5.5.250.0160.02715.91
5.5.240.0020.04415.70
5.5.230.0040.00411.13
5.5.220.0000.01011.27
5.5.210.0000.00811.41
5.5.200.0070.00410.75
5.5.190.0030.00911.09
5.5.180.0060.00611.33
5.5.170.0090.00010.96
5.5.160.0060.00611.40
5.5.150.0110.00011.40
5.5.140.0000.00810.74
5.5.130.0070.00311.07
5.5.120.0060.00311.28
5.5.110.0060.00011.30
5.5.100.0000.00811.26
5.5.90.0070.00311.32
5.5.80.0050.00311.17
5.5.70.0000.00711.25
5.5.60.0030.00311.28
5.5.50.0030.00510.79
5.5.40.0030.00711.03
5.5.30.0030.00511.00
5.5.20.0060.00611.51
5.5.10.0060.00611.30
5.5.00.0040.00410.82
5.4.450.0150.03915.43
5.4.440.0220.03215.47
5.4.430.0150.04115.31
5.4.420.0180.02915.39
5.4.410.0070.04115.41
5.4.400.0150.03815.12
5.4.390.0140.02815.21
5.4.380.0150.03814.98
5.4.370.0170.02815.06
5.4.360.0130.02614.94
5.4.350.0130.04115.17
5.4.340.0280.03114.95
5.4.330.0060.00611.12
5.4.320.0200.04014.73
5.4.310.0130.04015.06
5.4.300.0200.04015.07
5.4.290.0180.03515.05
5.4.280.0140.04215.18
5.4.270.0160.04015.24
5.4.260.0130.03614.90
5.4.250.0160.04114.93
5.4.240.0050.03615.17
5.4.230.0190.01714.92
5.4.220.0140.02514.89
5.4.210.0120.04315.01
5.4.200.0170.03915.00
5.4.190.0100.02315.08
5.4.180.0120.02515.17
5.4.170.0200.02215.19
5.4.160.0130.03714.96
5.4.150.0160.02614.98
5.4.140.0100.02413.82
5.4.130.0130.03213.74
5.4.120.0150.01813.77
5.4.110.0150.04013.52
5.4.100.0170.03713.83
5.4.90.0150.03613.77
5.4.80.0110.02513.80
5.4.70.0150.03013.53
5.4.60.0220.01313.58
5.4.50.0120.02813.74
5.4.40.0170.03613.62
5.4.30.0130.03513.62
5.4.20.0120.02213.81
5.4.10.0140.02013.83
5.4.00.0150.03713.55
5.3.290.0170.03512.74
5.3.280.0140.03312.66
5.3.270.0130.03512.46
5.3.260.0170.03512.78
5.3.250.0100.03712.57
5.3.240.0130.03012.56
5.3.230.0170.02912.54
5.3.220.0150.02212.62
5.3.210.0100.03712.64
5.3.200.0130.04012.44
5.3.190.0140.03312.57
5.3.180.0060.03412.55
5.3.170.0180.03712.65
5.3.160.0110.03112.45
5.3.150.0220.03312.63
5.3.140.0120.04312.55
5.3.130.0130.02112.46
5.3.120.0110.02112.59
5.3.110.0120.02212.66
5.3.100.0100.02412.36
5.3.90.0120.03512.28
5.3.80.0120.04412.09
5.3.70.0130.03812.26
5.3.60.0150.03712.26
5.3.50.0160.01812.34
5.3.40.0190.03612.19
5.3.30.0150.02712.27
5.3.20.0150.03712.08
5.3.10.0120.03912.07
5.3.00.0170.03311.93
5.2.170.0120.02511.05
5.2.160.0120.03211.05
5.2.150.0120.02811.05
5.2.140.0130.02111.05
5.2.130.0070.03011.05
5.2.120.0160.02011.05
5.2.110.0100.03011.05
5.2.100.0160.02511.05
5.2.90.0140.02811.05
5.2.80.0130.02211.05
5.2.70.0130.01811.05
5.2.60.0080.02511.05
5.2.50.0130.02011.05
5.2.40.0090.03211.05
5.2.30.0130.03011.05
5.2.20.0080.03411.05
5.2.10.0120.03211.05
5.2.00.0100.02711.05
5.1.60.0170.02511.05
5.1.50.0110.02711.05
5.1.40.0100.02611.05
5.1.30.0070.02011.05
5.1.20.0080.01811.05
5.1.10.0070.01411.05
5.1.00.0020.02111.05
5.0.50.0060.01111.05
5.0.40.0020.01311.05
5.0.30.0020.01911.05
5.0.20.0020.01711.05
5.0.10.0030.01311.05
5.0.00.0030.01811.05
4.4.90.0050.01011.05
4.4.80.0020.02211.05
4.4.70.0030.02011.05
4.4.60.0070.01711.05
4.4.50.0070.01811.05
4.4.40.0030.02011.05
4.4.30.0030.02111.05
4.4.20.0030.01011.05
4.4.10.0070.00811.05
4.4.00.0040.01311.05
4.3.110.0040.01011.05
4.3.100.0050.01111.05
4.3.90.0030.01011.05
4.3.80.0050.01311.05
4.3.70.0050.00811.05
4.3.60.0050.01011.05
4.3.50.0050.00811.05
4.3.40.0050.01211.05
4.3.30.0020.00811.05
4.3.20.0020.01111.05
4.3.10.0050.00711.05
4.3.00.0030.00811.05

preferences:
32.8 ms | 401 KiB | 5 Q