3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass { public $pub = 0; protected $prot = 1; private $priv = 2; } $obj = (object) (array) new MyClass(); $obj_vars = get_object_vars( $obj ); print_r( $obj_vars );

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.4.20.0060.00319.63
8.4.10.0080.01123.75
8.3.140.0050.00316.48
8.3.130.0000.00918.39
8.3.120.0040.01218.96
8.3.110.0030.00616.54
8.3.100.0090.00016.56
8.3.90.0070.00726.77
8.3.80.0040.00416.75
8.3.70.0090.00616.58
8.3.60.0100.01016.38
8.3.50.0080.00820.02
8.3.40.0100.00719.92
8.3.30.0110.00718.59
8.3.20.0000.00724.18
8.3.10.0070.00024.66
8.3.00.0000.00826.16
8.2.260.0070.01016.79
8.2.250.0080.00018.41
8.2.240.0040.00417.29
8.2.230.0080.00020.94
8.2.220.0000.00837.54
8.2.210.0080.01126.77
8.2.200.0080.00016.75
8.2.190.0110.00416.63
8.2.180.0150.00625.92
8.2.170.0030.01422.96
8.2.160.0150.00022.96
8.2.150.0030.00525.66
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0000.00826.16
8.2.110.0070.00321.13
8.2.100.0080.00417.72
8.2.90.0070.00317.50
8.2.80.0050.00318.69
8.2.70.0060.00317.50
8.2.60.0040.00418.03
8.2.50.0040.00418.07
8.2.40.0040.00418.09
8.2.30.0040.00418.00
8.2.20.0060.00321.00
8.2.10.0000.00717.86
8.2.00.0030.00319.15
8.1.310.0120.00618.04
8.1.300.0000.00820.14
8.1.290.0040.00430.84
8.1.280.0110.00425.92
8.1.270.0000.00824.66
8.1.260.0080.00026.35
8.1.250.0070.00328.09
8.1.240.0040.00419.09
8.1.230.0060.00617.77
8.1.220.0050.00317.74
8.1.210.0030.00518.77
8.1.200.0030.00617.22
8.1.190.0050.00317.23
8.1.180.0030.00618.10
8.1.170.0040.00418.84
8.1.160.0000.00818.82
8.1.150.0040.00418.57
8.1.140.0070.00017.27
8.1.130.0000.00717.44
8.1.120.0110.00517.47
8.1.110.0130.00417.45
8.1.100.0160.00017.42
8.1.90.0190.00017.50
8.1.80.0110.00517.41
8.1.70.0150.00017.53
8.1.60.0150.00517.54
8.1.50.0130.00817.65
8.1.40.0130.00817.60
8.1.30.0090.00917.50
8.1.20.0120.00817.55
8.1.10.0120.00617.52
8.1.00.0150.00617.44
8.0.300.0100.00018.77
8.0.290.0040.00416.75
8.0.280.0030.00318.38
8.0.270.0030.00316.76
8.0.260.0030.00316.68
8.0.250.0120.00416.71
8.0.240.0130.00316.81
8.0.230.0110.00416.75
8.0.220.0150.00016.73
8.0.210.0120.00316.73
8.0.200.0090.00916.70
8.0.190.0130.00316.79
8.0.180.0100.00316.71
8.0.170.0140.00416.66
8.0.160.0100.00516.78
8.0.150.0100.00416.79
8.0.140.0110.00516.72
8.0.130.0170.00016.66
8.0.120.0170.00016.69
8.0.110.0100.00616.72
8.0.100.0110.00316.77
8.0.90.0080.00816.67
8.0.80.0100.00516.62
8.0.70.0160.00016.73
8.0.60.0150.00016.64
8.0.50.0140.00016.60
8.0.30.0160.00016.72
8.0.20.0180.00016.85
8.0.10.0100.00516.92
8.0.00.0110.00716.96
7.4.330.0120.00015.55
7.4.320.0110.00516.51
7.4.300.0110.00516.41
7.4.290.0160.00016.51
7.4.280.0170.00016.45
7.4.270.0040.01516.45
7.4.260.0120.00316.37
7.4.250.0110.00416.48
7.4.240.0060.00616.39
7.4.230.0040.00816.23
7.4.220.0050.00516.50
7.4.210.0070.00316.51
7.4.200.0070.00416.50
7.4.190.0100.00016.58
7.4.180.0040.00716.50
7.4.160.0120.00016.25
7.4.150.0100.00016.43
7.4.140.0080.00416.41
7.4.130.0070.00316.31
7.4.120.0080.00316.11
7.4.110.0000.01116.21
7.4.100.0080.00416.32
7.4.90.0090.00316.34
7.4.80.0090.00316.32
7.4.70.0070.00316.20
7.4.60.0030.00916.38
7.4.50.0070.00516.26
7.4.40.0080.00316.14
7.4.30.0110.00016.33
7.4.20.0070.00416.22
7.4.10.0000.01016.23
7.4.00.0100.00016.19
7.3.330.0110.00416.18
7.3.320.0110.00416.04
7.3.310.0120.00516.16
7.3.300.0090.00516.11
7.3.290.0070.00716.17
7.3.280.0140.00316.18
7.3.270.0090.00516.12
7.3.260.0120.00316.08
7.3.250.0090.00616.21
7.3.240.0110.00316.11
7.3.230.0160.00016.17
7.3.220.0080.00515.98
7.3.210.0120.00216.15
7.3.200.0080.00816.00
7.3.190.0100.00616.12
7.3.180.0000.01415.99
7.3.170.0170.00016.10
7.3.160.0100.00515.98
7.3.150.0150.00016.06
7.3.140.0080.00816.01
7.3.130.0150.00016.10
7.3.120.0090.00516.15
7.3.110.0080.00816.07
7.3.100.0140.00015.98
7.3.90.0110.00316.29
7.3.80.0110.00415.99
7.3.70.0100.00316.14
7.3.60.0050.00916.38
7.3.50.0070.00716.13
7.3.40.0120.00416.21
7.3.30.0160.00016.39
7.3.20.0160.00418.17
7.3.10.0140.00017.89
7.3.00.0120.00317.96
7.2.340.0090.00516.17
7.2.330.0100.00516.36
7.2.320.0100.00516.14
7.2.310.0140.00316.17
7.2.300.0130.00416.26
7.2.290.0150.00016.20
7.2.280.0150.00016.26
7.2.270.0100.00516.13
7.2.260.0070.00716.14
7.2.250.0120.00316.27
7.2.240.0060.01016.20
7.2.230.0050.01016.30
7.2.220.0160.00016.20
7.2.210.0090.00516.13
7.2.200.0130.00416.26
7.2.190.0070.00716.29
7.2.180.0140.00016.35
7.2.170.0090.00516.49
7.2.160.0110.00316.36
7.2.150.0130.00418.15
7.2.140.0120.00318.29
7.2.130.0140.00018.43
7.2.120.0100.00318.34
7.2.110.0110.00618.23
7.2.100.0090.00618.27
7.2.90.0170.00018.32
7.2.80.0100.00518.24
7.2.70.0070.00718.24
7.2.60.0140.00018.37
7.2.50.0140.00018.37
7.2.40.0070.00718.37
7.2.30.0130.00318.34
7.2.20.0040.01218.44
7.2.10.0100.00718.45
7.2.00.0100.00718.43
7.1.330.0160.00017.29
7.1.320.0100.00317.31
7.1.310.0100.00317.30
7.1.300.0110.00417.16
7.1.290.0100.00517.23
7.1.280.0140.00017.23
7.1.270.0100.00517.23
7.1.260.0130.00017.19
7.1.250.0090.00517.03
7.1.240.0090.00417.08
7.1.230.0080.00817.12
7.1.220.0120.00417.10
7.1.210.0090.00617.25
7.1.200.0110.00417.13
7.1.190.0110.00417.28
7.1.180.0070.00717.05
7.1.170.0150.00017.14
7.1.160.0070.00717.13
7.1.150.0090.00517.13
7.1.140.0100.00317.21
7.1.130.0090.00517.07
7.1.120.0130.00017.08
7.1.110.0160.00017.07
7.1.100.0070.00717.14
7.1.90.0120.00317.16
7.1.80.0100.00317.09
7.1.70.0080.00816.86
7.1.60.0170.00017.13
7.1.50.0120.00317.15
7.1.40.0110.00417.13
7.1.30.0110.00317.20
7.1.20.0090.00617.09
7.1.10.0090.00417.11
7.1.00.0080.00617.02
7.0.330.0070.00716.80
7.0.320.0140.00016.68
7.0.310.0070.00716.78
7.0.300.0110.00416.70
7.0.290.0090.00616.67
7.0.280.0140.00016.77
7.0.270.0130.00316.87
7.0.260.0100.00516.90
7.0.250.0100.00317.02
7.0.240.0100.00317.02
7.0.230.0040.00917.05
7.0.220.0110.00216.91
7.0.210.0130.00316.99
7.0.200.0140.00016.90
7.0.190.0080.00816.97
7.0.180.0110.00416.77
7.0.170.0100.00317.00
7.0.160.0140.00016.72
7.0.150.0160.00016.66
7.0.140.0090.00616.71
7.0.130.0050.00917.00
7.0.120.0110.00316.96
7.0.110.0090.00516.88
7.0.100.0040.00816.77
7.0.90.0120.00016.89
7.0.80.0090.00516.67
7.0.70.0100.00316.68
7.0.60.0140.00016.88
7.0.50.0080.00816.81
7.0.40.0120.00316.92
7.0.30.0070.00716.88
7.0.20.0150.00016.77
7.0.10.0130.00216.79
7.0.00.0090.00516.60
5.6.400.0000.01415.86
5.6.390.0000.01415.76
5.6.380.0080.00815.75
5.6.370.0070.00715.67
5.6.360.0130.00015.82
5.6.350.0090.00415.80
5.6.340.0110.00415.69
5.6.330.0100.00315.71
5.6.320.0060.00615.67
5.6.310.0150.00015.78
5.6.300.0100.00415.64
5.6.290.0110.00315.75
5.6.280.0060.00615.76
5.6.270.0070.00715.70
5.6.260.0030.01015.84
5.6.250.0050.01015.79
5.6.240.0080.00515.85
5.6.230.0090.00515.91
5.6.220.0130.00015.91
5.6.210.0120.00315.77
5.6.200.0110.00315.98
5.6.190.0120.00315.77
5.6.180.0100.00515.73
5.6.170.0110.00415.97
5.6.160.0040.00815.80
5.6.150.0110.00315.80
5.6.140.0120.00315.82
5.6.130.0000.01315.77
5.6.120.0140.00015.70
5.6.110.0090.00415.74
5.6.100.0120.00415.80
5.6.90.0100.00715.61
5.6.80.0080.00415.63
5.6.70.0080.00416.04
5.6.60.0110.00415.79
5.6.50.0040.00815.70
5.6.40.0110.00315.69
5.6.30.0130.00315.63
5.6.20.0110.00315.78
5.6.10.0040.00915.64
5.6.00.0130.00015.65
5.5.380.0030.00915.95
5.5.370.0140.00015.90
5.5.360.0130.00015.82
5.5.350.0120.00215.62
5.5.340.0140.00215.73
5.5.330.0050.01015.55
5.5.320.0120.00215.58
5.5.310.0140.00015.55
5.5.300.0090.00415.66
5.5.290.0140.00015.67
5.5.280.0090.00515.63
5.5.270.0140.00015.70
5.5.260.0110.00315.61
5.5.250.0050.00915.84
5.5.240.0070.00715.83
5.5.230.0080.00515.73
5.5.220.0100.00315.78
5.5.210.0030.00915.79
5.5.200.0080.00415.55
5.5.190.0110.00415.66
5.5.180.0090.00415.68
5.5.170.0120.00515.71
5.5.160.0070.00715.74
5.5.150.0080.00415.63
5.5.140.0070.00715.55
5.5.130.0140.00015.57
5.5.120.0080.00615.55
5.5.110.0070.00515.55
5.5.100.0060.00615.80
5.5.90.0070.00715.80
5.5.80.0130.00015.64
5.5.70.0120.00315.80
5.5.60.0100.00315.55
5.5.50.0130.00015.74
5.5.40.0090.00415.73
5.5.30.0100.00515.62
5.5.20.0060.00615.59
5.5.10.0100.00315.76
5.5.00.0120.00315.64
5.4.450.0040.00715.55
5.4.440.0110.00015.55
5.4.430.0110.00015.55
5.4.420.0070.00315.55
5.4.410.0100.00015.55
5.4.400.0110.00015.55
5.4.390.0110.00015.55
5.4.380.0110.00015.55
5.4.370.0120.00015.55
5.4.360.0090.00315.55
5.4.350.0110.00015.55
5.4.340.0040.00715.55
5.4.330.0050.00515.55
5.4.320.0120.00015.55
5.4.310.0090.00315.55
5.4.300.0100.00215.55
5.4.290.0120.00315.55
5.4.280.0090.00415.55
5.4.270.0050.00515.55
5.4.260.0040.00715.55
5.4.250.0110.00015.55
5.4.240.0060.00615.55
5.4.230.0070.00315.55
5.4.220.0070.00315.55
5.4.210.0110.00015.55
5.4.200.0060.00615.55
5.4.190.0070.00415.55
5.4.180.0070.00415.55
5.4.170.0080.00315.55
5.4.160.0100.00015.55
5.4.150.0060.00615.55
5.4.140.0110.00015.55
5.4.130.0100.00015.55
5.4.120.0080.00315.55
5.4.110.0070.00315.55
5.4.100.0080.00415.55
5.4.90.0050.00515.55
5.4.80.0030.00915.55
5.4.70.0060.00615.55
5.4.60.0050.00515.55
5.4.50.0120.00015.55
5.4.40.0090.00015.55
5.4.30.0100.00015.55
5.4.20.0070.00215.55
5.4.10.0060.00615.55
5.4.00.0110.00015.55
5.3.290.0100.00015.55
5.3.280.0080.00315.55
5.3.270.0120.00015.55
5.3.260.0080.00415.55
5.3.250.0120.00015.55
5.3.240.0120.00015.55
5.3.230.0030.00915.55
5.3.220.0090.00315.55
5.3.210.0090.00315.55
5.3.200.0050.00515.55
5.3.190.0100.00015.55
5.3.180.0050.00515.55
5.3.170.0070.00315.55
5.3.160.0110.00015.55
5.3.150.0090.00315.55
5.3.140.0090.00415.55
5.3.130.0110.00015.55
5.3.120.0100.00015.55
5.3.110.0000.01215.55
5.3.100.0100.00015.55
5.3.90.0040.00715.55
5.3.80.0060.00615.55
5.3.70.0100.00015.55
5.3.60.0110.00015.55
5.3.50.0070.00415.55
5.3.40.0090.00315.55
5.3.30.0090.00015.55
5.3.20.0070.00415.55
5.3.10.0090.00215.55
5.3.00.0060.00615.55
5.2.170.0040.00415.55
5.2.160.0050.00515.55
5.2.150.0090.00015.55
5.2.140.0070.00315.55
5.2.130.0080.00015.55
5.2.120.0080.00015.55
5.2.110.0000.00815.55
5.2.100.0090.00015.55
5.2.90.0050.00515.55
5.2.80.0100.00015.55
5.2.70.0050.00515.55
5.2.60.0090.00015.55
5.2.50.0000.00815.55
5.2.40.0040.00415.55
5.2.30.0060.00315.55
5.2.20.0040.00415.55
5.2.10.0050.00315.55
5.2.00.0000.00915.55
5.1.60.0050.00215.55
5.1.50.0040.00415.55
5.1.40.0000.00715.55
5.1.30.0080.00015.55
5.1.20.0040.00415.55
5.1.10.0070.00015.55
5.1.00.0080.00015.55
5.0.50.0060.00015.55
5.0.40.0000.00715.55
5.0.30.0060.00015.55
5.0.20.0060.00215.55
5.0.10.0030.00315.55
5.0.00.0060.00015.55
4.4.90.0030.00015.55
4.4.80.0030.00115.55
4.4.70.0050.00015.55
4.4.60.0050.00015.55
4.4.50.0030.00115.55
4.4.40.0030.00015.55
4.4.30.0030.00015.55
4.4.20.0000.00415.55
4.4.10.0030.00015.55
4.4.00.0030.00015.55
4.3.110.0030.00015.55
4.3.100.0030.00015.55
4.3.90.0040.00015.55
4.3.80.0040.00015.55
4.3.70.0020.00215.55
4.3.60.0000.00415.55
4.3.50.0000.00415.55
4.3.40.0000.00415.55
4.3.30.0000.00315.55
4.3.20.0000.00415.55
4.3.10.0030.00015.55
4.3.00.0000.00315.55

preferences:
75.22 ms | 403 KiB | 5 Q