3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Bar { public function __construct() { unset($this->prop); } public function __get($name) { var_dump(__METHOD__ .';' . $name); } public function __set($name, $value) { var_dump(__METHOD__ .';' . $name . '=' . var_export($value, true)); } } class Foo extends Bar { public $prop; public function __construct() { parent::__construct(); $this->prop = 'abc'; } } new 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.60.0150.00016.63
8.3.50.0130.00522.83
8.3.40.0110.00318.76
8.3.30.0150.00718.91
8.3.20.0000.00820.34
8.3.10.0060.00323.30
8.3.00.0080.00019.02
8.2.180.0000.01716.38
8.2.170.0040.01222.96
8.2.160.0070.00720.55
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0080.00020.96
8.2.110.0060.00322.26
8.2.100.0130.00317.72
8.2.90.0030.00619.02
8.2.80.0040.00417.97
8.2.70.0000.00817.36
8.2.60.0000.00817.90
8.2.50.0040.00418.07
8.2.40.0000.00818.16
8.2.30.0030.00518.06
8.2.20.0050.00217.64
8.2.10.0040.00418.07
8.2.00.0000.00917.67
8.1.280.0140.00725.92
8.1.270.0050.00323.83
8.1.260.0000.00826.35
8.1.250.0030.00528.09
8.1.240.0090.00023.83
8.1.230.0110.00019.10
8.1.220.0000.00717.74
8.1.210.0040.00418.77
8.1.200.0030.00917.35
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0040.00418.64
8.1.160.0080.00022.00
8.1.150.0040.00418.91
8.1.140.0000.00717.43
8.1.130.0000.00817.86
8.1.120.0000.00717.49
8.1.110.0040.00417.49
8.1.100.0000.00717.45
8.1.90.0040.00417.48
8.1.80.0050.00217.40
8.1.70.0070.00017.45
8.1.60.0030.00517.57
8.1.50.0050.00317.52
8.1.40.0030.00517.51
8.1.30.0030.00617.69
8.1.20.0000.00817.66
8.1.10.0040.00417.60
8.1.00.0000.00917.51
8.0.300.0000.00718.77
8.0.290.0050.00316.63
8.0.280.0040.00418.45
8.0.270.0030.00317.17
8.0.260.0030.00317.25
8.0.250.0030.00316.99
8.0.240.0000.00817.01
8.0.230.0070.00016.75
8.0.220.0030.00316.83
8.0.210.0060.00016.70
8.0.200.0030.00316.90
8.0.190.0030.00316.85
8.0.180.0070.00016.89
8.0.170.0000.00816.84
8.0.160.0070.00016.74
8.0.150.0070.00016.78
8.0.140.0050.00316.80
8.0.130.0030.00313.27
8.0.120.0000.00816.82
8.0.110.0070.00016.87
8.0.100.0040.00416.76
8.0.90.0000.00716.68
8.0.80.0030.01216.88
8.0.70.0040.00416.90
8.0.60.0040.00416.95
8.0.50.0000.00716.86
8.0.30.0090.01017.16
8.0.20.0140.00617.40
8.0.10.0040.00416.96
8.0.00.0080.01016.61
7.4.330.0000.00515.00
7.4.320.0000.00716.38
7.4.300.0000.00716.54
7.4.290.0080.00016.62
7.4.280.0030.00616.54
7.4.270.0070.00016.52
7.4.260.0030.00316.43
7.4.250.0060.00316.30
7.4.240.0010.00616.49
7.4.230.0030.00316.25
7.4.220.0060.01416.55
7.4.210.0100.00616.46
7.4.200.0080.00016.26
7.4.160.0040.01216.52
7.4.150.0210.00317.40
7.4.140.0140.00317.86
7.4.130.0110.00616.42
7.4.120.0090.00716.55
7.4.110.0060.01016.50
7.4.100.0070.01116.49
7.4.90.0110.00616.45
7.4.80.0130.00319.39
7.4.70.0060.01016.54
7.4.60.0120.00316.47
7.4.50.0000.00416.39
7.4.40.0120.00516.33
7.4.30.0130.00316.55
7.4.00.0090.00415.25
7.3.330.0050.00013.16
7.3.320.0020.00313.24
7.3.310.0050.00316.30
7.3.300.0050.00216.34
7.3.290.0000.01616.26
7.3.280.0100.00816.25
7.3.270.0110.00717.40
7.3.260.0030.01616.19
7.3.250.0090.00716.52
7.3.240.0030.01316.61
7.3.230.0090.01216.39
7.3.210.0060.01016.29
7.3.200.0100.00616.64
7.3.190.0100.00616.22
7.3.180.0090.00616.45
7.3.170.0070.01016.51
7.3.160.0000.02216.56
7.3.10.0060.00616.46
7.3.00.0060.00616.42
7.2.330.0110.00716.46
7.2.320.0110.00716.54
7.2.310.0100.00616.47
7.2.300.0090.00916.81
7.2.290.0130.01016.69
7.2.130.0100.00316.52
7.2.120.0100.00316.27
7.2.110.0060.01116.48
7.2.100.0090.00916.49
7.2.90.0030.00916.79
7.2.80.0030.01316.72
7.2.70.0000.00916.43
7.2.60.0090.00916.77
7.2.50.0050.00816.28
7.2.40.0070.00716.34
7.2.30.0080.00616.43
7.2.20.0030.00716.56
7.2.10.0060.00616.58
7.2.00.0070.00918.09
7.1.250.0060.00615.35
7.1.200.0070.00715.80
7.1.100.0080.00318.23
7.1.70.0050.00217.15
7.1.60.0030.00917.31
7.1.50.0190.01316.93
7.1.00.0070.07322.31
7.0.200.0030.01416.79
7.0.140.0000.07322.15
7.0.60.0070.04319.92
7.0.50.0030.04317.88
7.0.40.0030.08020.40
7.0.30.0300.08320.24
7.0.20.0200.08320.32
7.0.10.0100.07320.09
7.0.00.0100.03720.12
5.6.280.0030.07320.90
5.6.210.0030.05720.50
5.6.200.0100.07718.16
5.6.190.0000.04720.52
5.6.180.0400.03720.77
5.6.170.0230.04320.47
5.6.160.0100.04320.47
5.6.150.0030.04318.18
5.6.140.0130.06018.19
5.6.130.0030.04018.11
5.6.120.0030.09320.79
5.6.110.0130.07721.00
5.6.100.0130.08021.13
5.6.90.0030.04321.10
5.6.80.0170.07720.39
5.5.350.0200.04020.33
5.5.340.0000.05018.03
5.5.330.0030.04720.40
5.5.320.0270.06320.38
5.5.310.0270.04720.41
5.5.300.0000.04017.98
5.5.290.0000.09017.96
5.5.280.0130.05020.88
5.5.270.0030.04020.89
5.5.260.0030.04320.85
5.5.250.0170.06320.63
5.5.240.2270.05720.27
5.4.450.0300.03319.55
5.4.440.0100.04719.55
5.4.430.0200.04019.47
5.4.420.0530.04719.20
5.4.410.0200.04319.11
5.4.400.0130.04719.01
5.4.390.0270.04318.87
5.4.380.0330.05318.50
5.4.370.0600.05318.74
5.4.360.0230.05018.73
5.4.350.0330.09018.78
5.4.340.0300.05018.51
5.4.320.0040.03712.50
5.4.310.0050.04112.50
5.4.300.0060.04112.51
5.4.290.0050.03912.50
5.4.280.0070.03412.40
5.4.270.0080.03412.40
5.4.260.0060.03712.40
5.4.250.0100.03312.39
5.4.240.0050.03712.40
5.4.230.0030.04012.39
5.4.220.0020.03912.39
5.4.210.0060.03512.39
5.4.200.0060.03612.39
5.4.190.0100.03212.38
5.4.180.0030.03912.38
5.4.170.0060.03612.40
5.4.160.0070.03412.39
5.4.150.0060.03512.39
5.4.140.0070.03512.07
5.4.130.0030.04612.06
5.4.120.0080.03412.02
5.4.110.0080.03812.01
5.4.100.0070.03312.01
5.4.90.0080.04512.02
5.4.80.0100.03312.02
5.4.70.0050.03512.01
5.4.60.0070.03212.02
5.4.50.0050.03612.01
5.4.40.0050.03712.00
5.4.30.0100.03712.00
5.4.20.0050.03612.00
5.4.10.0040.03612.00
5.4.00.0050.03811.49
5.3.290.0080.03812.80
5.3.280.0050.03912.71
5.3.270.0070.04012.73
5.3.260.0060.03912.72
5.3.250.0060.03712.72
5.3.240.0040.03912.72
5.3.230.0080.03512.71
5.3.220.0090.03812.68
5.3.210.0060.04412.68
5.3.200.0100.04312.68
5.3.190.0070.03712.68
5.3.180.0070.03512.68
5.3.170.0050.03712.67
5.3.160.0050.04012.67
5.3.150.0070.03612.67
5.3.140.0090.03512.66
5.3.130.0090.04012.66
5.3.120.0070.03812.66
5.3.110.0060.03812.66
5.3.100.0080.03612.13
5.3.90.0080.03612.11
5.3.80.0060.03512.09
5.3.70.0050.03612.10
5.3.60.0080.03412.09
5.3.50.0090.03612.03
5.3.40.0060.03912.03
5.3.30.0090.03411.99
5.3.20.0040.04211.77
5.3.10.0060.03811.74
5.3.00.0050.03711.73
5.2.170.0040.0319.22
5.2.160.0050.0289.22
5.2.150.0020.0329.23
5.2.140.0060.0329.22
5.2.130.0000.0379.18
5.2.120.0060.0299.19
5.2.110.0070.0349.20
5.2.100.0040.0299.19
5.2.90.0040.0289.19
5.2.80.0030.0309.19
5.2.70.0050.0349.19
5.2.60.0080.0339.14
5.2.50.0010.0339.11
5.2.40.0040.0299.08
5.2.30.0030.0319.06
5.2.20.0040.0339.04
5.2.10.0050.0318.96
5.2.00.0060.0288.82
5.1.60.0050.0238.10
5.1.50.0030.0258.09
5.1.40.0050.0238.08
5.1.30.0070.0298.43
5.1.20.0070.0328.45
5.1.10.0040.0268.18
5.1.00.0090.0238.17
5.0.50.0060.0276.65
5.0.40.0070.0176.51
5.0.30.0030.0376.32
5.0.20.0030.0216.29
5.0.10.0050.0196.27
5.0.00.0050.0356.26
4.4.90.0020.0154.77
4.4.80.0050.0174.75
4.4.70.0020.0224.75
4.4.60.0050.0194.75
4.4.50.0030.0214.77
4.4.40.0040.0364.71
4.4.30.0040.0174.76
4.4.20.0050.0154.85
4.4.10.0070.0134.85
4.4.00.0020.0264.76
4.3.110.0030.0154.66
4.3.100.0040.0134.66
4.3.90.0050.0124.63
4.3.80.0020.0264.58
4.3.70.0030.0184.63
4.3.60.0030.0144.63
4.3.50.0050.0204.63
4.3.40.0030.0254.54
4.3.30.0030.0153.30
4.3.20.0010.0163.28
4.3.10.0020.0153.24
4.3.00.0170.01715.66

preferences:
55.41 ms | 401 KiB | 5 Q