3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Mother { function getProperties(){ return get_class_vars(get_class($this)); } } class Child extends Mother{ protected $one = 1; protected $two = 2; } $c = new Child; var_dump($c->getProperties());

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.130.0110.00716.75
8.3.120.0050.00320.78
8.3.110.0060.00316.65
8.3.100.0000.00816.78
8.3.90.0100.00726.77
8.3.80.0040.00418.56
8.3.70.0030.01216.63
8.3.60.0140.00718.55
8.3.50.0070.01221.08
8.3.40.0100.01018.66
8.3.30.0140.00420.38
8.3.20.0070.00020.29
8.3.10.0040.00421.96
8.3.00.0040.00422.37
8.2.250.0150.00016.77
8.2.240.0040.00416.96
8.2.230.0120.00620.94
8.2.220.0000.01024.06
8.2.210.0040.00426.77
8.2.200.0060.00316.88
8.2.190.0140.00016.58
8.2.180.0080.00818.16
8.2.170.0120.00322.96
8.2.160.0070.00720.47
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0020.00526.16
8.2.120.0030.00517.72
8.2.110.0030.00620.36
8.2.100.0140.00017.77
8.2.90.0030.00517.38
8.2.80.0050.00318.69
8.2.70.0080.00017.50
8.2.60.0060.00317.50
8.2.50.0040.00417.55
8.2.40.0030.00619.32
8.2.30.0040.00419.43
8.2.20.0030.00517.58
8.2.10.0040.00417.59
8.2.00.0060.00317.63
8.1.300.0090.00917.73
8.1.290.0090.00030.84
8.1.280.0070.00725.92
8.1.270.0040.00421.82
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0080.00323.71
8.1.230.0040.00820.82
8.1.220.0040.00417.74
8.1.210.0080.00020.96
8.1.200.0080.00017.23
8.1.190.0030.00617.22
8.1.180.0050.00318.10
8.1.170.0070.00017.88
8.1.160.0000.00718.76
8.1.150.0070.00018.61
8.1.140.0040.00417.29
8.1.130.0030.00317.73
8.1.120.0030.00517.41
8.1.110.0040.00417.36
8.1.100.0040.00417.46
8.1.90.0040.00417.45
8.1.80.0030.00317.27
8.1.70.0000.00717.33
8.1.60.0030.00617.46
8.1.50.0050.00217.48
8.1.40.0080.00017.41
8.1.30.0040.00417.61
8.1.20.0040.00417.58
8.1.10.0070.00017.58
8.1.00.0050.00217.52
8.0.300.0080.00319.29
8.0.290.0030.00616.63
8.0.280.0040.00418.35
8.0.270.0030.00517.87
8.0.260.0030.00316.75
8.0.250.0030.00316.76
8.0.240.0080.00016.80
8.0.230.0000.00716.91
8.0.220.0000.00816.85
8.0.210.0030.00316.83
8.0.200.0060.00016.91
8.0.190.0000.00716.80
8.0.180.0070.00016.87
8.0.170.0080.00016.87
8.0.160.0050.00316.80
8.0.150.0070.00016.89
8.0.140.0040.00416.80
8.0.130.0050.00013.18
8.0.120.0080.00016.76
8.0.110.0050.00316.73
8.0.100.0050.00316.89
8.0.90.0000.00716.81
8.0.80.0130.00716.73
8.0.70.0000.00816.70
8.0.60.0070.00016.63
8.0.50.0040.00416.88
8.0.30.0090.01016.88
8.0.20.0120.00717.40
8.0.10.0040.00416.95
8.0.00.0120.00716.75
7.4.330.0050.00015.00
7.4.320.0030.00316.44
7.4.300.0000.00716.61
7.4.290.0000.00616.50
7.4.280.0000.00716.51
7.4.270.0040.00416.49
7.4.260.0000.00513.17
7.4.250.0070.00016.55
7.4.240.0060.00216.54
7.4.230.0030.00316.57
7.4.220.0090.00916.50
7.4.210.0040.01116.50
7.4.200.0000.00716.57
7.4.190.0070.00016.46
7.4.160.0100.01016.39
7.4.150.0090.00917.40
7.4.140.0120.00517.86
7.4.130.0100.00616.46
7.4.120.0080.01016.63
7.4.110.0100.00716.35
7.4.100.0040.01716.49
7.4.90.0070.01016.53
7.4.80.0120.00919.39
7.4.70.0120.00616.52
7.4.60.0110.01216.51
7.4.50.0080.00016.54
7.4.40.0070.00222.77
7.4.30.0140.00316.53
7.4.00.0070.00715.13
7.3.330.0000.00613.03
7.3.320.0000.00513.16
7.3.310.0070.00016.08
7.3.300.0000.00716.09
7.3.290.0100.00316.17
7.3.280.0070.01016.24
7.3.270.0080.00917.40
7.3.260.0090.01016.18
7.3.250.0090.00916.34
7.3.240.0110.01116.23
7.3.230.0160.00016.39
7.3.210.0040.01316.25
7.3.200.0100.00719.39
7.3.190.0130.00716.25
7.3.180.0090.00616.18
7.3.170.0080.00816.27
7.3.160.0080.00816.22
7.3.120.0060.00914.38
7.3.10.0070.00716.44
7.3.00.0060.00316.54
7.2.330.0190.00016.73
7.2.320.0140.00416.71
7.2.310.0120.00516.58
7.2.300.0110.00516.29
7.2.290.0090.00916.61
7.2.130.0050.00516.76
7.2.120.0100.00316.59
7.2.110.0080.00316.95
7.2.100.0030.01316.91
7.2.90.0120.00016.66
7.2.80.0030.00616.71
7.2.70.0060.00916.59
7.2.60.0030.01116.77
7.2.50.0070.01016.89
7.2.40.0140.01416.81
7.2.30.0090.00616.93
7.2.20.0140.00716.84
7.2.10.0040.01216.81
7.2.00.0060.00616.86
7.1.250.0050.00315.66
7.1.240.0090.00615.55
7.1.230.0030.01015.55
7.1.220.0060.00615.60
7.1.210.0000.01115.63
7.1.200.0050.00915.69
7.1.190.0080.00415.80
7.1.180.0070.00715.70
7.1.170.0120.00315.70
7.1.160.0140.00315.61
7.1.150.0030.00915.72
7.1.140.0100.00015.77
7.1.130.0040.01115.66
7.1.120.0000.01015.65
7.1.110.0000.01215.45
7.1.100.0070.00715.76
7.1.90.0070.00315.63
7.1.80.0050.00515.41
7.1.70.0090.00516.37
7.1.60.0080.01017.49
7.1.50.0070.01116.28
7.1.40.0060.00715.99
7.1.30.0060.00915.43
7.1.20.0090.00315.68
7.1.10.0070.01015.56
7.1.00.0070.03018.84
7.0.330.0000.01215.03
7.0.320.0060.00615.30
7.0.310.0120.00615.26
7.0.300.0040.01115.24
7.0.290.0040.00815.20
7.0.280.0000.01215.09
7.0.270.0000.01415.32
7.0.260.0000.01314.88
7.0.250.0000.01315.36
7.0.240.0060.00615.45
7.0.230.0060.00915.29
7.0.220.0000.01515.37
7.0.210.0090.00915.33
7.0.200.0040.00515.86
7.0.190.0000.01415.37
7.0.180.0030.01015.33
7.0.170.0070.01115.31
7.0.160.0040.00815.46
7.0.150.0040.01615.41
7.0.140.0090.03818.65
7.0.130.0070.01015.39
7.0.120.0140.00915.07
7.0.110.0050.01015.37
7.0.100.0080.00815.37
7.0.90.0120.00615.36
7.0.80.0080.00515.19
7.0.70.0060.04518.50
7.0.60.0050.04418.46
7.0.50.0030.04718.66
7.0.40.0030.02816.74
7.0.30.0040.04716.66
7.0.20.0070.04716.83
7.0.10.0100.03516.76
7.0.00.0040.03216.74
5.6.380.0070.00714.24
5.6.370.0080.01114.45
5.6.360.0130.00014.16
5.6.350.0090.00913.68
5.6.340.0090.00614.45
5.6.330.0030.01214.03
5.6.320.0110.00714.12
5.6.310.0140.00514.26
5.6.300.0120.00914.36
5.6.290.0100.01314.37
5.6.280.0050.04417.39
5.6.270.0160.00014.31
5.6.260.0050.01414.06
5.6.250.0040.01513.92
5.6.240.0040.01414.03
5.6.230.0100.01014.38
5.6.220.0020.03917.29
5.6.210.0030.03317.15
5.6.200.0120.03017.47
5.6.190.0050.04617.68
5.6.180.0100.03817.51
5.6.170.0030.02817.64
5.6.160.0050.04617.71
5.6.150.0020.03617.54
5.6.140.0050.03517.50
5.6.130.0030.04917.65
5.6.120.0120.04017.77
5.6.110.0040.05017.69
5.6.100.0050.03917.70
5.6.90.0080.04517.73
5.6.80.0030.04117.29
5.6.70.0070.04217.18
5.6.60.0070.04317.24
5.6.50.0030.04017.22
5.6.40.0000.04517.33
5.6.30.0090.03917.25
5.6.20.0050.04017.33
5.6.10.0050.03817.26
5.6.00.0070.04317.13
5.5.380.0030.00910.94
5.5.370.0070.00310.50
5.5.360.0050.03015.64
5.5.350.0050.04315.68
5.5.340.0070.03815.97
5.5.330.0050.03815.92
5.5.320.0080.03515.97
5.5.310.0040.03115.91
5.5.300.0030.03115.79
5.5.290.0060.03815.93
5.5.280.0000.02515.88
5.5.270.0030.04015.90
5.5.260.0050.03116.08
5.5.250.0080.03715.78
5.5.240.0060.02815.60
5.5.230.0070.03915.56
5.5.220.0070.04015.51
5.5.210.0020.03815.71
5.5.200.0050.04015.66
5.5.190.0070.03715.57
5.5.180.0070.04015.70
5.5.170.0030.00610.92
5.5.160.0060.03615.44
5.5.150.0020.04815.48
5.5.140.0030.04215.71
5.5.130.0030.03115.54
5.5.120.0050.03015.49
5.5.110.0050.04315.66
5.5.100.0080.04015.52
5.5.90.0050.03615.61
5.5.80.0050.03615.44
5.5.70.0070.03915.44
5.5.60.0070.03315.30
5.5.50.0030.04315.36
5.5.40.0060.03315.55
5.5.30.0070.03715.57
5.5.20.0050.04515.63
5.5.10.0080.04015.42
5.5.00.0060.02815.39
5.4.450.0120.04014.82
5.4.440.0030.04315.03
5.4.430.0000.03815.20
5.4.420.0080.03815.18
5.4.410.0020.04015.02
5.4.400.0050.03715.11
5.4.390.0030.03815.05
5.4.380.0080.03615.05
5.4.370.0070.03814.94
5.4.360.0120.03114.82
5.4.350.0070.03814.96
5.4.340.0030.03215.08
5.4.330.0030.00910.76
5.4.320.0100.03715.05
5.4.310.0040.04114.95
5.4.300.0030.03315.03
5.4.290.0070.03714.98
5.4.280.0070.03514.96
5.4.270.0030.03514.75
5.4.260.0030.04014.91
5.4.250.0050.04114.87
5.4.240.0050.03814.80
5.4.230.0080.03314.96
5.4.220.0060.03614.73
5.4.210.0090.04014.89
5.4.200.0090.03014.76
5.4.190.0020.03614.95
5.4.180.0010.02814.74
5.4.170.0070.03814.75
5.4.160.0030.02714.75
5.4.150.0110.02714.96
5.4.140.0070.03813.62
5.4.130.0050.03213.60
5.4.120.0030.03313.41
5.4.110.0020.03313.65
5.4.100.0030.04113.62
5.4.90.0100.03013.69
5.4.80.0080.03813.64
5.4.70.0060.03613.46
5.4.60.0050.03513.42
5.4.50.0050.02813.43
5.4.40.0060.03813.59
5.4.30.0080.02813.73
5.4.20.0070.02813.69
5.4.10.0020.02713.58
5.4.00.0000.04013.13
5.3.290.0020.02612.60
5.3.280.0030.04212.61
5.3.270.0050.04012.63
5.3.260.0040.04112.51
5.3.250.0020.04412.62
5.3.240.0030.03412.53
5.3.230.0040.04112.61
5.3.220.0070.03712.45
5.3.210.0010.04112.44
5.3.200.0020.04312.58
5.3.190.0030.04012.61
5.3.180.0080.03512.59
5.3.170.0050.04012.50
5.3.160.0050.02812.66
5.3.150.0030.03712.68
5.3.140.0030.03912.59
5.3.130.0060.03912.59
5.3.120.0060.03012.51
5.3.110.0070.02912.55
5.3.100.0020.04012.67
5.3.90.0030.03512.48
5.3.80.0050.03212.57
5.3.70.0070.03712.56
5.3.60.0060.03312.53
5.3.50.0030.03712.43
5.3.40.0050.02812.57
5.3.30.0080.03112.45
5.3.20.0050.03712.58
5.3.10.0030.02712.39
5.3.00.0050.03912.50
5.2.170.0050.03112.14
5.2.160.0030.03112.15
5.2.150.0000.02312.01
5.2.140.0070.03112.00
5.2.130.0020.03512.08
5.2.120.0050.02511.95
5.2.110.0050.03112.05
5.2.100.0080.03212.12
5.2.90.0060.02812.08
5.2.80.0070.03012.03
5.2.70.0070.03012.03
5.2.60.0050.03211.89
5.2.50.0030.03212.09
5.2.40.0050.03212.07
5.2.30.0030.03311.87
5.2.20.0020.02711.97
5.2.10.0040.03412.02
5.2.00.0070.03211.93
5.1.60.0030.02511.64
5.1.50.0030.02411.60
5.1.40.0020.02911.69
5.1.30.0060.03011.74
5.1.20.0040.02811.63
5.1.10.0070.02011.68
5.1.00.0020.02711.62
5.0.50.0050.01811.38
5.0.40.0020.02511.38
5.0.30.0020.03311.38
5.0.20.0030.02411.38
5.0.10.0050.02211.38
5.0.00.0030.02811.38
4.4.90.0020.02011.38
4.4.80.0020.02011.38
4.4.70.0020.01211.38
4.4.60.0020.01811.38
4.4.50.0030.02011.38
4.4.40.0070.02811.38
4.4.30.0020.02111.38
4.4.20.0020.02011.38
4.4.10.0020.01811.38
4.4.00.0020.02811.38
4.3.110.0030.01011.38
4.3.100.0000.02311.38
4.3.90.0030.02011.38
4.3.80.0030.02411.38
4.3.70.0030.02011.38
4.3.60.0050.01811.38
4.3.50.0020.01711.38
4.3.40.0060.02511.38
4.3.30.0030.01811.38
4.3.20.0000.01811.38
4.3.10.0020.01711.38
4.3.00.0050.01511.38

preferences:
29.33 ms | 403 KiB | 5 Q