3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $bar = 'barValue'; protected $baz = 'bazValue'; private $tab = 'tabValue'; } $foo = new Foo(); $arrayFoo = (array) $foo; var_dump($arrayFoo['*baz']); var_dump($arrayFoo['Footab']);

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.0040.00418.59
8.3.120.0090.00918.98
8.3.110.0040.00416.92
8.3.100.0120.00016.53
8.3.90.0070.00726.77
8.3.80.0090.00016.50
8.3.70.0140.00416.75
8.3.60.0070.00716.75
8.3.50.0170.00021.92
8.3.40.0040.01118.70
8.3.30.0140.00019.00
8.3.20.0050.00220.16
8.3.10.0080.00023.50
8.3.00.0050.00319.25
8.2.250.0040.00416.63
8.2.240.0060.00317.14
8.2.230.0100.00020.94
8.2.220.0090.00037.54
8.2.210.0060.00326.77
8.2.200.0030.00618.54
8.2.190.0140.00716.75
8.2.180.0110.00425.92
8.2.170.0070.00718.95
8.2.160.0030.01022.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0110.00418.98
8.2.110.0060.00322.12
8.2.100.0040.00817.84
8.2.90.0000.00817.63
8.2.80.0040.00418.95
8.2.70.0030.00617.50
8.2.60.0080.00017.75
8.2.50.0000.00917.75
8.2.40.0050.00319.48
8.2.30.0000.00717.66
8.2.20.0000.00717.79
8.2.10.0040.00418.06
8.2.00.0040.00417.84
8.1.300.0040.00417.79
8.1.290.0030.00630.84
8.1.280.0090.01225.92
8.1.270.0000.00823.94
8.1.260.0070.00426.35
8.1.250.0060.00328.09
8.1.240.0050.00523.79
8.1.230.0070.00419.00
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0030.00617.23
8.1.190.0000.00817.23
8.1.180.0030.00618.10
8.1.170.0000.00719.00
8.1.160.0000.00718.82
8.1.150.0000.00718.47
8.1.140.0030.00617.39
8.1.130.0030.00317.30
8.1.120.0060.00317.44
8.1.110.0040.00417.38
8.1.100.0040.00417.37
8.1.90.0040.00417.30
8.1.80.0030.00317.43
8.1.70.0030.00317.30
8.1.60.0030.00517.50
8.1.50.0000.00817.50
8.1.40.0020.00517.47
8.1.30.0030.00517.61
8.1.20.0060.00317.63
8.1.10.0040.00417.51
8.1.00.0030.00617.40
8.0.300.0020.00519.57
8.0.290.0000.00816.75
8.0.280.0030.00317.87
8.0.270.0030.00317.99
8.0.260.0040.00416.71
8.0.250.0030.00316.92
8.0.240.0000.00817.00
8.0.230.0000.00716.90
8.0.220.0000.00816.93
8.0.210.0060.00016.89
8.0.200.0070.00316.94
8.0.190.0040.00416.95
8.0.180.0000.00716.87
8.0.170.0000.00816.90
8.0.160.0080.00016.88
8.0.150.0040.00416.88
8.0.140.0040.00416.76
8.0.130.0000.00513.33
8.0.120.0030.00416.82
8.0.110.0030.00516.91
8.0.100.0050.00216.75
8.0.90.0000.00716.90
8.0.80.0070.00716.88
8.0.70.0040.00416.89
8.0.60.0040.00416.88
8.0.50.0070.00016.89
8.0.30.0110.00616.98
8.0.20.0080.00917.25
8.0.10.0110.00317.06
8.0.00.0060.01116.81
7.4.330.0050.00015.15
7.4.320.0040.00416.64
7.4.300.0000.00616.44
7.4.290.0070.00016.42
7.4.280.0000.00716.50
7.4.270.0050.00316.50
7.4.260.0080.00316.46
7.4.250.0040.00416.60
7.4.240.0040.00416.53
7.4.230.0000.00716.52
7.4.220.0110.00816.36
7.4.210.0010.01416.50
7.4.200.0070.00016.69
7.4.190.0000.00716.72
7.4.160.0090.00816.56
7.4.150.0090.00716.98
7.4.140.0050.01217.36
7.4.130.0050.01016.39
7.4.120.0090.00616.41
7.4.110.0080.01016.52
7.4.100.0080.01116.42
7.4.90.0090.00517.22
7.4.80.0050.01017.92
7.4.70.0080.00716.50
7.4.60.0100.00516.37
7.4.50.0030.00716.51
7.4.40.0100.00519.59
7.4.30.0100.00516.39
7.4.20.0030.01016.37
7.4.10.0030.01616.27
7.4.00.0100.00315.63
7.3.330.0000.00513.43
7.3.320.0000.00513.21
7.3.310.0000.00716.38
7.3.300.0090.00016.21
7.3.290.0110.00416.45
7.3.280.0050.01216.33
7.3.270.0060.00916.89
7.3.260.0100.00516.48
7.3.250.0130.00616.32
7.3.240.0070.00916.32
7.3.230.0080.00616.39
7.3.220.0000.01316.33
7.3.210.0120.00816.33
7.3.200.0080.01017.84
7.3.190.0050.01316.41
7.3.180.0020.01316.25
7.3.170.0070.01016.32
7.3.160.0050.01116.44
7.3.150.0030.01016.26
7.3.140.0060.00916.28
7.3.130.0090.00316.20
7.3.120.0100.00615.52
7.3.110.0040.01116.23
7.3.100.0090.00516.24
7.3.90.0070.01016.62
7.3.80.0100.00316.30
7.3.70.0100.01016.34
7.3.60.0000.01416.42
7.3.50.0090.00616.41
7.3.40.0100.00716.41
7.3.30.0050.00816.38
7.3.20.0090.00916.36
7.3.10.0070.00716.36
7.3.00.0060.00916.35
7.2.340.0240.00316.29
7.2.330.0090.01216.47
7.2.320.0150.00516.34
7.2.310.0100.01216.39
7.2.300.0130.00816.43
7.2.290.0130.00716.35
7.2.280.0120.01516.27
7.2.270.0160.01216.29
7.2.260.0200.01016.31
7.2.250.0270.00316.23
7.2.240.0170.01016.32
7.2.230.0200.00816.32
7.2.220.0260.01316.29
7.2.210.0220.00916.23
7.2.200.0200.00516.50
7.2.190.0150.01516.43
7.2.180.0250.00016.41
7.2.170.0230.00316.50
7.2.160.0190.01116.48
7.2.150.0160.00816.52
7.2.140.0180.00716.59
7.2.130.0260.01116.68
7.2.120.0190.00616.63
7.2.110.0240.00416.62
7.2.100.0110.01516.59
7.2.90.0270.00816.57
7.2.80.0180.00716.62
7.2.70.0700.01116.45
7.2.60.0080.01216.61
7.2.50.0200.01016.50
7.2.40.0200.00816.55
7.2.30.0180.00916.57
7.2.20.0200.00816.58
7.2.10.0180.00816.51
7.2.00.0340.00516.56
7.1.330.0180.00915.46
7.1.320.0160.01615.57
7.1.310.0200.01215.61
7.1.300.0280.01615.51
7.1.290.0110.01115.63
7.1.280.0120.01215.51
7.1.270.0170.01015.46
7.1.260.0180.00415.42
7.1.250.0170.00715.40
7.1.240.0140.00915.55
7.1.230.0210.00315.45
7.1.220.0190.01115.55
7.1.210.0140.00915.52
7.1.200.0100.00715.63
7.1.190.0220.00315.50
7.1.180.0110.01215.44
7.1.170.0080.01615.45
7.1.160.0200.00515.46
7.1.150.0100.01415.38
7.1.140.0240.00015.48
7.1.130.0170.00715.44
7.1.120.0110.01115.43
7.1.110.0300.00615.65
7.1.100.0230.01015.81
7.1.90.0260.00815.55
7.1.80.0260.01015.92
7.1.70.0190.00815.89
7.1.60.0220.01122.01
7.1.50.0180.01121.77
7.1.40.0220.01221.58
7.1.30.0260.00621.61
7.1.20.0190.01021.66
7.1.10.0660.00815.57
7.1.00.0110.01015.65
7.0.330.0070.01415.21
7.0.320.0210.00915.19
7.0.310.0190.00515.13
7.0.300.0160.01015.19
7.0.290.0180.00515.22
7.0.280.0120.01215.22
7.0.270.0200.00315.05
7.0.260.0160.00415.12
7.0.250.0220.00515.52
7.0.240.0250.00615.52
7.0.230.0220.01015.56
7.0.220.0260.01115.29
7.0.210.0410.00614.90
7.0.200.0210.00715.58
7.0.190.0120.01015.64
7.0.180.0190.00915.32
7.0.170.0170.01115.31
7.0.160.0160.00715.29
7.0.150.0290.00815.21
7.0.140.0150.00815.34
7.0.130.0130.00815.37
7.0.120.0150.00515.54
7.0.110.0180.00815.37
7.0.100.0150.00715.34
7.0.90.0190.00915.33
7.0.80.0220.00315.33
7.0.70.0190.00515.39
7.0.60.0180.00315.20
7.0.50.0180.00815.26
7.0.40.0130.01014.97
7.0.30.0140.00814.89
7.0.20.0130.01014.94
7.0.10.0320.00714.99
7.0.00.0130.00714.95
5.6.400.0230.00016.03
5.6.390.0180.00615.88
5.6.380.0120.01915.89
5.6.370.0160.00615.90
5.6.360.0140.01115.80
5.6.350.0150.00815.86
5.6.340.0240.00315.83
5.6.330.0220.00015.83
5.6.320.0140.01515.88
5.6.310.0140.00915.77
5.6.300.0100.04519.14
5.6.290.0140.03419.03
5.6.280.0150.03219.18
5.6.270.0080.03619.30
5.6.260.0210.03219.21
5.6.250.0120.03519.21
5.6.240.0130.03619.13
5.6.230.0100.03619.22
5.6.220.0150.03019.22
5.6.210.0110.03319.15
5.6.200.0140.04119.22
5.6.190.0040.04219.21
5.6.180.0110.03419.10
5.6.170.0150.04019.16
5.6.160.0120.03919.16
5.6.150.0080.03719.19
5.6.140.0100.03919.25
5.6.130.0130.04519.21
5.6.120.0140.03119.21
5.6.110.0060.04019.15
5.6.100.0150.05019.18
5.6.90.0100.03919.13
5.6.80.0120.03218.77
5.6.70.0080.04718.84
5.6.60.0140.03118.87
5.6.50.0130.03118.80
5.6.40.0090.03918.84
5.6.30.0120.03618.70
5.6.20.0100.03618.72
5.6.10.0110.03218.68
5.6.00.0120.03318.71
5.5.380.0120.03617.01
5.5.370.0100.03216.96
5.5.360.0120.03316.91
5.5.350.0110.03316.97
5.5.340.0060.04017.25
5.5.330.0130.03617.20
5.5.320.0120.03517.21
5.5.310.0130.03917.23
5.5.300.0110.03517.16
5.5.290.0080.03617.25
5.5.280.0080.03617.25
5.5.270.0130.03517.20
5.5.260.0110.04017.24
5.5.250.0120.04517.13
5.5.240.0130.03416.95
5.5.230.0180.03116.84
5.5.220.0130.03116.96
5.5.210.0100.03216.88
5.5.200.0070.03616.83
5.5.190.0160.03816.75
5.5.180.0100.04116.73
5.5.170.0140.00715.68
5.5.160.0070.03416.84
5.5.150.0240.03316.69
5.5.140.0070.04416.69
5.5.130.0130.03116.57
5.5.120.0130.03016.73
5.5.110.0100.03416.70
5.5.100.0100.03916.72
5.5.90.0080.03316.65
5.5.80.0060.03616.81
5.5.70.0160.03616.80
5.5.60.0070.03916.66
5.5.50.0100.03316.75
5.5.40.0050.03716.70
5.5.30.0150.03516.85
5.5.20.0070.03716.76
5.5.10.0150.03116.81
5.5.00.0150.03816.69
5.4.450.0110.03517.16
5.4.440.0100.03517.10
5.4.430.0100.03917.14
5.4.420.0090.03817.15
5.4.410.0080.05016.99
5.4.400.0100.03116.86
5.4.390.0100.03816.91
5.4.380.0090.03017.01
5.4.370.0060.03317.00
5.4.360.0070.03716.85
5.4.350.0070.03416.98
5.4.340.0090.03516.86
5.4.330.0130.00312.70
5.4.320.0090.03716.89
5.4.310.0120.03016.97
5.4.300.0130.03216.95
5.4.290.0080.03416.92
5.4.280.0100.03716.98
5.4.270.0080.03417.04
5.4.260.0090.03317.01
5.4.250.0130.03416.86
5.4.240.0120.03716.88
5.4.230.0050.03716.80
5.4.220.0110.03616.90
5.4.210.0120.03116.90
5.4.200.0090.03416.83
5.4.190.0050.03716.80
5.4.180.0110.03116.89
5.4.170.0110.03516.83
5.4.160.0100.03716.88
5.4.150.0070.03316.79
5.4.140.0070.03215.36
5.4.130.0080.03215.33
5.4.120.0110.02815.24
5.4.110.0060.03415.14
5.4.100.0080.03615.32
5.4.90.0090.03015.24
5.4.80.0040.04115.29
5.4.70.0110.03615.38
5.4.60.0070.03215.27
5.4.50.0120.03215.24
5.4.40.0050.03915.31
5.4.30.0120.02915.34
5.4.20.0100.03215.25
5.4.10.0090.03015.36
5.4.00.0100.02914.77
5.3.290.0090.03714.33
5.3.280.0090.03114.24
5.3.270.0060.03414.39
5.3.260.0070.03514.43
5.3.250.0080.03414.24
5.3.240.0100.03914.28
5.3.230.0090.03314.30
5.3.220.0060.03314.28
5.3.210.0090.03614.27
5.3.200.0160.02914.19
5.3.190.0110.03514.32
5.3.180.0100.03914.28
5.3.170.0070.03414.36
5.3.160.0080.03614.29
5.3.150.0090.03214.27
5.3.140.0090.03514.28
5.3.130.0060.03514.33
5.3.120.0060.03714.31
5.3.110.0060.03514.24
5.3.100.0050.03314.04
5.3.90.0090.02814.13
5.3.80.0050.03214.04
5.3.70.0070.03314.12
5.3.60.0100.02813.97
5.3.50.0060.03114.18
5.3.40.0090.03013.98
5.3.30.0090.03114.08
5.3.20.0090.03213.89
5.3.10.0070.03713.95
5.3.00.0110.03013.86

preferences:
30.97 ms | 403 KiB | 5 Q