3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public $publicProperty; protected $protectedProperty; private $privateProperty; public function __construct() { unset( $this->publicProperty, $this->protectedProperty, $this->privateProperty ); } function __get($name) { echo 'called __get ' . $name; } function __set($name, $value) { echo 'called __set ' . $name . ' ' . $value; } } $t = new Test(); foreach (array('publicProperty', 'protectedProperty', 'privateProperty') as $propertyName) { $prop = new ReflectionProperty('Test', $propertyName); $prop->setAccessible(true); echo var_export($prop->getValue($t), true) . "\n"; $prop->setValue($t, 'value'); } ?>

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.0140.00718.16
8.3.50.0100.00821.92
8.3.40.0070.00718.79
8.3.30.0070.00719.14
8.3.20.0070.00020.35
8.3.10.0040.00421.97
8.3.00.0040.00422.40
8.2.180.0110.01116.38
8.2.170.0130.00722.96
8.2.160.0000.01320.39
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00419.36
8.2.110.0090.00020.35
8.2.100.0040.00717.91
8.2.90.0050.00319.23
8.2.80.0040.00418.04
8.2.70.0000.00817.63
8.2.60.0030.00617.93
8.2.50.0050.00318.07
8.2.40.0060.00318.34
8.2.30.0030.00617.93
8.2.20.0040.00417.72
8.2.10.0040.00417.69
8.2.00.0060.00317.59
8.1.280.0000.01425.92
8.1.270.0000.00822.19
8.1.260.0000.00726.35
8.1.250.0050.00328.09
8.1.240.0070.00318.48
8.1.230.0040.00719.01
8.1.220.0030.00617.74
8.1.210.0060.00318.77
8.1.200.0030.00617.47
8.1.190.0080.00017.53
8.1.180.0070.00318.10
8.1.170.0040.00418.46
8.1.160.0090.00022.02
8.1.150.0050.00318.61
8.1.140.0040.00417.46
8.1.130.0000.00717.77
8.1.120.0040.00417.51
8.1.110.0050.00217.35
8.1.100.0030.00317.45
8.1.90.0020.00517.44
8.1.80.0060.00317.44
8.1.70.0030.00317.29
8.1.60.0090.00417.50
8.1.50.0080.00017.50
8.1.40.0000.00717.41
8.1.30.0030.00517.64
8.1.20.0000.01117.65
8.1.10.0050.00317.54
8.1.00.0000.00917.48
8.0.300.0000.00718.77
8.0.290.0000.00717.30
8.0.280.0040.00418.51
8.0.270.0000.00717.25
8.0.260.0030.00318.35
8.0.250.0000.00716.86
8.0.240.0040.00416.84
8.0.230.0030.00316.83
8.0.220.0070.00016.92
8.0.210.0030.00316.81
8.0.200.0060.00016.97
8.0.190.0070.00016.95
8.0.180.0000.00816.79
8.0.170.0040.00416.79
8.0.160.0040.00416.86
8.0.150.0050.00316.81
8.0.140.0050.00316.77
8.0.130.0060.00013.34
8.0.120.0080.00016.71
8.0.110.0000.00716.81
8.0.100.0040.00416.92
8.0.90.0030.00316.87
8.0.80.0140.00416.91
8.0.70.0050.00216.77
8.0.60.0000.00716.77
8.0.50.0070.00016.99
8.0.30.0150.00517.14
8.0.20.0130.01017.40
8.0.10.0020.00517.00
8.0.00.0130.00616.73
7.4.330.0000.00815.00
7.4.320.0030.00316.62
7.4.300.0000.00616.49
7.4.290.0040.00416.54
7.4.280.0040.00416.51
7.4.270.0030.00316.54
7.4.260.0040.00416.42
7.4.250.0070.00016.55
7.4.240.0050.00216.58
7.4.230.0000.00716.40
7.4.220.0070.01116.71
7.4.210.0110.00416.65
7.4.200.0000.00716.52
7.4.190.0030.00316.67
7.4.160.0120.00416.53
7.4.150.0110.01417.40
7.4.140.0140.00817.86
7.4.130.0130.00516.49
7.4.120.0080.01016.46
7.4.110.0140.00316.42
7.4.100.0070.01016.50
7.4.90.0030.01316.67
7.4.80.0070.01019.39
7.4.70.0090.00916.55
7.4.60.0130.00316.45
7.4.50.0050.00316.50
7.4.40.0060.00922.77
7.4.30.0110.01116.46
7.4.00.0030.01015.02
7.3.330.0060.00013.16
7.3.320.0050.00013.22
7.3.310.0080.00016.20
7.3.300.0030.00316.31
7.3.290.0090.00616.43
7.3.280.0030.01116.31
7.3.270.0110.00817.40
7.3.260.0150.00816.57
7.3.250.0060.01016.44
7.3.240.0090.01216.37
7.3.230.0000.01916.39
7.3.210.0100.00716.38
7.3.200.0120.00419.39
7.3.190.0100.01216.20
7.3.180.0090.00816.54
7.3.170.0100.00616.37
7.3.160.0110.01116.48
7.3.120.0090.00614.69
7.2.330.0070.01416.64
7.2.320.0040.01516.78
7.2.310.0070.01416.68
7.2.300.0070.01016.50
7.2.290.0090.00916.76
7.2.00.0080.00319.30
7.1.200.0040.00815.67
7.1.100.0100.00718.26
7.1.70.0030.00616.90
7.1.60.0070.01419.82
7.1.50.0130.00716.77
7.1.00.0030.07722.30
7.0.200.0000.00916.80
7.0.140.0030.06722.12
7.0.100.0000.04719.96
7.0.90.0270.05019.97
7.0.80.0100.04319.94
7.0.70.0000.06019.92
7.0.60.0170.07019.93
7.0.50.0170.05720.24
7.0.40.0030.05020.02
7.0.30.0070.05020.02
7.0.20.0000.05720.01
7.0.10.0100.06020.12
7.0.00.0170.07020.10
5.6.250.0100.08020.59
5.6.240.0030.07720.69
5.6.230.0070.09020.76
5.6.220.0200.05720.64
5.6.210.0030.06720.57
5.6.200.0070.05021.04
5.6.190.0170.07721.08
5.6.180.0070.08321.04
5.6.170.0170.06021.09
5.6.160.0130.07021.07
5.6.150.0030.08021.03
5.6.140.0030.04321.04
5.6.130.0170.06321.07
5.6.120.0130.05021.09
5.6.110.0200.06321.09
5.6.100.0100.08721.10
5.6.90.0000.07021.00
5.6.80.0130.04020.46
5.6.70.0070.08720.43
5.6.60.0170.03720.33
5.6.50.0000.05020.52
5.6.40.0100.07320.40
5.6.30.0070.06020.40
5.6.20.0170.06720.31
5.6.10.0030.05320.30
5.6.00.0070.06020.45
5.5.380.0100.04720.50
5.5.370.0100.04720.35
5.5.360.0130.07320.35
5.5.350.0030.06320.46
5.5.340.0100.08720.94
5.5.330.0070.08020.90
5.5.320.0200.07020.91
5.5.310.0070.04720.78
5.5.300.0070.06720.83
5.5.290.0130.06320.93
5.5.280.0030.08020.74
5.5.270.0130.04320.91
5.5.260.0100.07720.88
5.5.250.0070.08020.71
5.5.240.0000.07720.22
5.5.230.0130.07320.25
5.5.220.0070.06320.30
5.5.210.0070.04320.24
5.5.200.0030.07720.00
5.5.190.0100.07020.28
5.5.180.0030.05020.01
5.5.160.0070.08720.28
5.5.150.0070.03720.15
5.5.140.0130.03320.13
5.5.130.0100.04720.25
5.5.120.0030.04720.25
5.5.110.0100.04020.07
5.5.100.0070.04319.99
5.5.90.0130.07320.07
5.5.80.0130.04020.17
5.5.70.0170.06320.10
5.5.60.0070.04320.06
5.5.50.0070.03320.07
5.5.40.0030.04020.07
5.5.30.0030.04020.14
5.5.20.0000.04319.96
5.5.10.0100.04720.14
5.5.00.0070.04320.10
5.4.450.0000.08319.46
5.4.440.0100.07019.17
5.4.430.0100.07719.36
5.4.420.0100.04019.41
5.4.410.0070.07719.33
5.4.400.0100.05019.03
5.4.390.0070.07719.23
5.4.380.0170.07019.18
5.4.370.0030.04019.07
5.4.360.0000.05319.13
5.4.350.0000.05018.95
5.4.340.0070.04719.03
5.4.320.0130.03719.04
5.4.310.0000.05319.23
5.4.300.0070.04019.09
5.4.290.0130.06719.03
5.4.280.0170.06319.15
5.4.270.0000.05719.04
5.4.260.0100.04019.03
5.4.250.0130.03019.12
5.4.240.0030.08019.04
5.4.230.0100.07019.12
5.4.220.0000.04318.93
5.4.210.0070.05319.08
5.4.200.0070.03719.04
5.4.190.0070.04318.89
5.4.180.0130.06019.23
5.4.170.0070.03719.03
5.4.160.0130.03319.01
5.4.150.0000.04318.88
5.4.140.0070.03716.50
5.4.130.0100.04016.41
5.4.120.0070.07316.32
5.4.110.0030.06716.47
5.4.100.0030.08716.51
5.4.90.0170.07016.28
5.4.80.0070.03316.43
5.4.70.0070.03716.34
5.4.60.0030.05716.48
5.4.50.0030.03716.48
5.4.40.0000.04316.54
5.4.30.0100.04316.36
5.4.20.0070.07316.44
5.4.10.0030.03716.33
5.4.00.0100.07715.75
5.3.290.0130.06714.74
5.3.280.0030.05714.66
5.3.270.0030.04714.68
5.3.260.0100.06314.61
5.3.250.0000.07714.58
5.3.240.0070.06314.67
5.3.230.0130.06714.53
5.3.220.0030.07714.64
5.3.210.0030.03714.68
5.3.200.0000.04014.55
5.3.190.0070.03714.70
5.3.180.0100.04014.54
5.3.170.0100.04714.59
5.3.160.0000.06314.71
5.3.150.0000.04014.60
5.3.140.0000.05714.49
5.3.130.0070.06314.53
5.3.120.0130.02714.62
5.3.110.0030.04714.61
5.3.100.0030.04014.13
5.3.90.0130.04013.95
5.3.80.0000.06714.16
5.3.70.0030.06714.01
5.3.60.0100.07013.93
5.3.50.0070.05314.09
5.3.40.0070.04713.98
5.3.30.0030.04714.02
5.3.20.0070.06713.59
5.3.10.0030.06713.80
5.3.00.0070.03713.74
5.2.170.0000.03712.53
5.2.160.0000.03712.53
5.2.150.0070.02712.53
5.2.140.0030.03312.53
5.2.130.0030.04312.53
5.2.120.0000.03312.53
5.2.110.0030.04312.53
5.2.100.0000.03012.53
5.2.90.0070.05012.53
5.2.80.0070.02712.53
5.2.70.0030.03012.53
5.2.60.0030.04012.53
5.2.50.0030.05012.53
5.2.40.0030.03712.53
5.2.30.0070.02712.53
5.2.20.0030.02712.53
5.2.10.0070.04012.53
5.2.00.0000.03012.53
5.1.60.0100.04312.53
5.1.50.0070.04312.53
5.1.40.0030.02712.53
5.1.30.0000.02712.53
5.1.20.0030.05712.53
5.1.10.0030.04012.53
5.1.00.0030.04712.53
5.0.50.0000.02012.53
5.0.40.0070.03712.53
5.0.30.0030.05712.53
5.0.20.0070.03312.53
5.0.10.0000.02312.53
5.0.00.0070.02312.53
4.4.90.0030.03712.53
4.4.80.0000.02712.53
4.4.70.0000.01712.53
4.4.60.0030.01312.53
4.4.50.0070.01712.53
4.4.40.0000.03012.53
4.4.30.0000.01712.53
4.4.20.0030.01312.53
4.4.10.0030.01012.53
4.4.00.0000.04012.53
4.3.110.0030.02312.53
4.3.100.0030.03012.53
4.3.90.0000.01712.53
4.3.80.0000.02312.53
4.3.70.0000.01712.53
4.3.60.0000.01712.53
4.3.50.0030.02312.53
4.3.40.0000.02312.53
4.3.30.0030.01712.53
4.3.20.0000.01712.53
4.3.10.0030.01312.53
4.3.00.0000.01312.53

preferences:
45.39 ms | 401 KiB | 5 Q