3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** 取り出したい対象のオブジェクト */ class Hoge { protected $a = 'maa'; private $b = 2; public $c; function __construct() { $this->c = new Hoge; } } /** 取り出すためのコード */ class TestHoge extends Hoge { public static function __set_state($data) { return $data; } } eval('$d='.var_export(new TestHoge, true).';'); // protectedメンバ$aを取得 echo $d['a'] . PHP_EOL; // privateメンバ$bを取得 echo $d['b'] . PHP_EOL;

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.0640.02778.33
8.3.50.0840.03179.95
8.3.40.0350.01447.94
8.3.30.0420.01648.07
8.3.20.0170.01049.68
8.3.10.0220.00651.06
8.3.00.0100.00751.18
8.2.180.0910.03080.16
8.2.170.0420.01647.80
8.2.160.0320.01948.45
8.2.150.0240.00347.86
8.2.140.0150.00949.73
8.2.130.0230.01047.30
8.2.120.0200.00349.79
8.2.110.0190.01148.73
8.2.100.0360.00346.78
8.2.90.0140.01046.84
8.2.80.0130.01747.15
8.2.70.0160.01346.50
8.2.60.0140.01447.01
8.2.50.0190.00646.75
8.2.40.0270.00749.84
8.2.30.0290.00048.61
8.2.20.0130.01346.74
8.2.10.0230.00747.08
8.2.00.0110.01847.11
8.1.280.0910.02079.50
8.1.270.0350.00051.38
8.1.260.0210.00751.14
8.1.250.0160.00949.68
8.1.240.0390.00749.98
8.1.230.0350.00350.17
8.1.220.0220.00346.63
8.1.210.0090.01648.02
8.1.200.0070.01946.47
8.1.190.0120.01546.35
8.1.180.0130.01346.66
8.1.170.0110.01447.71
8.1.160.0000.02449.73
8.1.150.0150.00947.78
8.1.140.0180.01148.52
8.1.130.0180.00746.59
8.1.120.0160.00946.64
8.1.110.0170.01746.50
8.1.100.0190.00646.58
8.1.90.0220.00646.54
8.1.80.0100.01346.64
8.1.70.0030.02046.49
8.1.60.0100.01946.77
8.1.50.0170.01046.57
8.1.40.0100.01646.70
8.1.30.0200.01046.71
8.1.20.0190.00646.75
8.1.10.0210.02479.03
8.1.00.0230.02379.08
8.0.300.0250.01981.33
8.0.290.0340.01078.21
8.0.280.0170.02479.91
8.0.270.0230.02378.65
8.0.260.0340.00778.76
8.0.250.0230.01778.38
8.0.240.0230.03378.32
8.0.230.0230.02078.33
8.0.220.0170.03178.21
8.0.210.0300.01778.24
8.0.200.0230.02778.37
8.0.190.0300.02678.27
8.0.180.0430.01378.27
8.0.170.0380.02778.23
8.0.160.0200.02778.29
8.0.150.0270.01778.24
8.0.140.0470.01078.22
8.0.130.0270.044130.01
8.0.120.0230.02378.28
8.0.110.0190.02678.18
8.0.100.0320.01378.19
8.0.90.0270.02078.29
8.0.80.0480.04878.20
8.0.70.0260.01978.20
8.0.60.0270.02378.29
8.0.50.0260.02678.29
8.0.30.0520.04978.35
8.0.20.0820.04978.71
8.0.10.0290.01678.32
8.0.00.0690.05378.08
7.4.330.0220.01478.48
7.4.320.0260.01377.95
7.4.300.0370.01778.08
7.4.290.0390.02677.77
7.4.280.0620.01777.83
7.4.270.0300.01378.03
7.4.260.0530.01877.92
7.4.250.0270.02077.96
7.4.240.0210.02277.88
7.4.230.0260.02377.91
7.4.220.0740.06878.04
7.4.210.0590.05377.95
7.4.200.0210.02177.83
7.4.160.0590.07677.87
7.4.150.0820.06677.84
7.4.140.0840.04977.99
7.4.130.0770.04777.84
7.4.120.0650.04478.00
7.4.110.0720.03677.70
7.4.100.0810.07177.84
7.4.90.0880.06778.11
7.4.80.0520.07178.04
7.4.70.0650.04977.97
7.4.60.0470.05877.91
7.4.50.0330.03377.97
7.4.40.0800.07078.12
7.4.30.0620.05177.93
7.4.10.0370.04476.66
7.4.00.0380.04576.22
7.3.330.0300.047129.97
7.3.320.0830.030129.83
7.3.310.0170.03377.88
7.3.300.0260.01977.73
7.3.290.0170.02877.58
7.3.280.0570.06277.75
7.3.270.0660.04377.75
7.3.260.0650.04677.93
7.3.240.0750.05477.82
7.3.230.0560.05677.98
7.3.210.0770.06877.71
7.3.200.0650.06877.79
7.3.190.0660.05977.81
7.3.180.0850.03677.67
7.3.170.0710.04277.62
7.3.160.0590.05277.65
7.3.130.0510.05176.51
7.3.120.0530.04676.30
7.3.110.0490.03376.08
7.3.100.0240.04776.14
7.3.90.0500.03676.38
7.3.80.0360.03776.11
7.3.70.0200.04376.16
7.3.60.0400.03775.89
7.3.50.0390.03275.98
7.3.40.0390.02376.05
7.3.30.0510.03076.21
7.3.20.0350.02178.21
7.3.10.0280.02878.57
7.3.00.0160.03978.55
7.2.330.1080.06878.04
7.2.320.0590.05677.78
7.2.310.0680.05577.99
7.2.300.0770.04278.05
7.2.290.0740.06377.94
7.2.260.0400.04076.29
7.2.250.0560.04376.32
7.2.240.0410.02776.34
7.2.230.0440.03476.09
7.2.220.0370.03776.50
7.2.210.0140.05276.14
7.2.200.0260.03876.32
7.2.190.0360.04076.12
7.2.180.0300.04676.40
7.2.170.0350.03576.12
7.2.160.0180.06176.46
7.2.150.0130.03778.62
7.2.140.0070.04478.68
7.2.130.0280.02878.47
7.2.120.0220.02878.59
7.2.110.1110.03278.42
7.2.100.0210.02878.53
7.2.90.0160.02978.73
7.2.80.0210.03878.63
7.2.70.0130.04078.90
7.2.60.0720.02278.35
7.2.50.0250.02578.45
7.2.40.0170.03378.32
7.2.30.0340.02478.17
7.2.20.0330.03678.28
7.2.10.0090.03578.21
7.2.00.4400.01979.87
7.1.330.0370.03077.73
7.1.320.0180.03177.55
7.1.310.0140.03777.50
7.1.300.0200.03077.58
7.1.290.0210.03177.61
7.1.280.0170.03077.61
7.1.270.0140.03177.43
7.1.260.0220.02977.36
7.1.250.0220.02977.75
7.1.240.0240.02777.61
7.1.230.0160.02977.66
7.1.220.0070.04677.53
7.1.210.0380.03477.69
7.1.200.0620.02377.71
7.1.190.0130.03677.21
7.1.180.0210.03077.65
7.1.170.0210.04277.29
7.1.160.0190.04877.29
7.1.150.0130.03077.58
7.1.140.0100.04277.05
7.1.130.0290.02977.28
7.1.120.0190.02977.20
7.1.110.0130.05676.93
7.1.100.1080.02254.63
7.1.90.0130.03776.98
7.1.80.0260.03677.09
7.1.70.0340.03078.04
7.1.60.0130.04778.21
7.1.50.0160.03878.06
7.1.40.0380.03077.48
7.1.30.0200.03377.17
7.1.20.0320.03777.47
7.1.10.0210.04677.50
7.1.00.0070.07980.91
7.0.330.0150.03777.29
7.0.320.0230.03377.08
7.0.310.0200.02777.27
7.0.300.0200.04177.30
7.0.290.0260.03877.02
7.0.280.0100.03477.34
7.0.270.0140.03776.87
7.0.260.0300.03776.80
7.0.250.0170.04476.95
7.0.240.0140.03177.22
7.0.230.0220.03476.85
7.0.220.0280.03576.96
7.0.210.0220.04076.69
7.0.201.2370.03271.46
7.0.190.0270.03476.82
7.0.180.0270.03076.58
7.0.170.0090.04476.99
7.0.160.0140.03577.02
7.0.150.0220.03777.05
7.0.140.0350.02977.00
7.0.130.0140.04276.72
7.0.120.0180.03576.75
7.0.110.0170.03776.91
7.0.100.1590.04676.70
7.0.90.1740.03376.59
7.0.80.0370.04076.76
7.0.70.0200.04377.23
7.0.60.0860.06379.82
7.0.50.0310.04978.69
7.0.40.0260.05616.83
7.0.30.0230.06716.63
7.0.20.0210.07816.71
7.0.10.0090.06216.83
7.0.00.0120.05516.67
5.6.400.0300.04678.34
5.6.390.0370.04178.19
5.6.380.0470.05078.50
5.6.370.0300.04378.27
5.6.360.0400.04278.03
5.6.350.0240.05178.42
5.6.340.0450.02978.03
5.6.330.0330.04678.13
5.6.320.0360.04278.17
5.6.310.0330.05677.46
5.6.300.0420.04277.82
5.6.290.0280.05977.86
5.6.280.0290.07381.35
5.6.270.0450.05277.91
5.6.260.0340.05477.84
5.6.250.0220.06477.45
5.6.240.0470.05377.78
5.6.230.0590.02677.72
5.6.220.0350.05578.04
5.6.210.0420.07381.35
5.6.200.0350.05780.05
5.6.190.0420.07781.34
5.6.180.0590.05081.32
5.6.170.0410.08281.20
5.6.160.0350.07681.31
5.6.150.0300.07280.09
5.6.140.0360.07280.14
5.6.130.0390.07480.14
5.6.120.0250.07181.57
5.6.110.0440.08081.63
5.6.100.0310.05781.73
5.6.90.0320.07481.48
5.6.80.0440.07581.18
5.6.70.0460.04378.32
5.6.60.0340.05478.09
5.6.50.0530.04677.90
5.6.40.0420.05578.05
5.6.30.0350.05278.02
5.6.20.0540.04078.10
5.6.10.0490.05278.13
5.6.00.0480.04178.17
5.5.380.0300.05377.05
5.5.370.0140.07276.52
5.5.360.0430.03976.87
5.5.350.0380.07180.13
5.5.340.0260.07878.89
5.5.330.0430.07080.06
5.5.320.0380.06580.12
5.5.310.0590.06880.05
5.5.300.0310.05779.02
5.5.290.0320.09078.99
5.5.280.0250.06780.28
5.5.270.0350.08480.43
5.5.260.0400.07180.41
5.5.250.0430.07380.28
5.5.240.0440.07280.09
5.5.230.0360.06877.02
5.5.220.0250.06376.79
5.5.210.0410.04877.04
5.5.200.0440.05276.78
5.5.190.0360.03977.08
5.5.180.0290.05777.21
5.5.170.0320.05276.94
5.5.160.0470.05577.00
5.5.150.0370.04477.19
5.5.140.0460.03676.84
5.5.130.0360.04976.64
5.5.120.0400.04676.84
5.5.110.0330.06077.04
5.5.100.0330.05677.06
5.5.90.0470.04177.04
5.5.80.0370.05276.94
5.5.70.0320.05376.96
5.5.60.0580.02676.95
5.5.50.0320.05476.77
5.5.40.0480.04176.80
5.5.30.0410.03876.80
5.5.20.0500.03676.91
5.5.10.0340.05077.02
5.5.00.0320.05476.93

preferences:
54.09 ms | 401 KiB | 5 Q