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.60.0110.00718.43
8.3.50.0120.00822.05
8.3.40.0110.00418.72
8.3.30.0130.00020.22
8.3.20.0080.00018.65
8.3.10.0040.00421.08
8.3.00.0040.00419.69
8.2.180.0040.01116.60
8.2.170.0110.00422.96
8.2.160.0000.01420.30
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0060.00326.16
8.2.120.0070.00021.00
8.2.110.0040.00820.25
8.2.100.0080.00417.91
8.2.90.0060.00319.13
8.2.80.0040.00419.34
8.2.70.0030.00517.63
8.2.60.0050.00317.93
8.2.50.0030.00618.07
8.2.40.0030.00520.00
8.2.30.0000.01119.43
8.2.20.0040.00417.63
8.2.10.0070.00017.60
8.2.00.0000.00817.83
8.1.280.0080.00825.92
8.1.270.0040.00423.99
8.1.260.0060.00326.35
8.1.250.0000.00728.09
8.1.240.0070.00323.92
8.1.230.0070.00420.89
8.1.220.0030.00518.77
8.1.210.0060.00318.85
8.1.200.0060.00317.35
8.1.190.0000.00917.40
8.1.180.0050.00318.10
8.1.170.0050.00318.55
8.1.160.0040.00418.73
8.1.150.0040.00418.57
8.1.140.0070.00017.43
8.1.130.0050.00317.82
8.1.120.0000.00717.41
8.1.110.0040.00417.34
8.1.100.0070.00017.36
8.1.90.0000.00717.42
8.1.80.0000.00717.45
8.1.70.0070.00017.42
8.1.60.0080.00017.56
8.1.50.0030.00617.45
8.1.40.0000.00817.51
8.1.30.0050.00217.51
8.1.20.0030.00617.60
8.1.10.0060.00317.45
8.1.00.0030.00717.32
8.0.300.0060.00319.93
8.0.290.0000.00817.05
8.0.280.0040.00418.42
8.0.270.0000.00817.21
8.0.260.0030.00316.68
8.0.250.0040.00416.99
8.0.240.0060.00316.96
8.0.230.0000.00716.84
8.0.220.0030.00616.77
8.0.210.0040.00416.79
8.0.200.0000.00616.83
8.0.190.0000.00717.01
8.0.180.0050.00316.84
8.0.170.0000.00816.80
8.0.160.0000.00916.86
8.0.150.0050.00216.89
8.0.140.0000.00716.80
8.0.130.0000.00513.27
8.0.120.0080.00016.88
8.0.110.0070.00016.99
8.0.100.0040.00416.86
8.0.90.0040.00416.74
8.0.80.0060.01316.88
8.0.70.0070.00016.73
8.0.60.0000.00716.77
8.0.50.0040.00416.73
8.0.30.0080.01117.18
8.0.20.0130.01017.40
8.0.10.0000.00716.99
8.0.00.0100.01116.62
7.4.330.0000.00516.67
7.4.320.0030.00516.53
7.4.300.0000.00616.48
7.4.290.0030.00316.50
7.4.280.0040.00416.45
7.4.270.0030.00316.40
7.4.260.0030.00313.31
7.4.250.0050.00316.54
7.4.240.0000.00716.63
7.4.230.0000.00716.62
7.4.220.0060.01016.45
7.4.210.0070.01016.46
7.4.200.0030.00316.63
7.4.190.0000.00716.63
7.4.160.0100.00616.61
7.4.150.0070.01117.40
7.4.140.0140.00317.86
7.4.130.0140.00516.45
7.4.120.0090.00916.38
7.4.110.0090.01216.45
7.4.100.0120.00816.38
7.4.90.0200.00316.57
7.4.80.0110.00919.39
7.4.70.0060.00916.41
7.4.60.0080.01316.29
7.4.50.0030.00616.41
7.4.40.0100.00722.77
7.4.30.0130.01016.56
7.4.00.0040.01114.81
7.3.330.0000.00513.38
7.3.320.0060.00013.31
7.3.310.0030.00316.46
7.3.300.0070.00016.36
7.3.290.0120.00316.30
7.3.280.0080.01016.34
7.3.270.0140.00317.40
7.3.260.0100.01218.24
7.3.250.0100.00716.34
7.3.240.0100.00716.46
7.3.230.0110.00616.39
7.3.210.0070.01316.48
7.3.200.0090.00919.39
7.3.190.0100.00716.46
7.3.180.0070.01016.58
7.3.170.0080.00816.57
7.3.160.0100.00616.30
7.3.120.0090.00714.90
7.3.110.0100.00714.72
7.3.100.0120.00014.79
7.3.90.0070.00714.58
7.3.80.0000.01314.83
7.3.70.0030.00614.79
7.3.60.0100.00014.59
7.3.50.0070.00414.88
7.3.40.0100.00014.45
7.3.30.0080.00414.58
7.3.20.0100.00716.52
7.3.10.0040.00716.79
7.3.00.0030.00816.51
7.2.330.0170.00016.69
7.2.320.0090.00916.81
7.2.310.0090.01516.32
7.2.300.0120.00616.29
7.2.290.0130.00616.86
7.2.250.0090.00915.09
7.2.240.0070.01114.61
7.2.230.0130.00015.15
7.2.220.0100.00715.02
7.2.210.0030.00914.62
7.2.200.0070.00714.77
7.2.190.0110.00314.91
7.2.180.0030.01015.20
7.2.170.0040.00814.89
7.2.60.0390.00016.70
7.2.50.0090.00316.79
7.1.330.0030.01415.84
7.1.320.0000.01215.65
7.1.310.0030.01315.77
7.1.300.0110.00615.49
7.1.290.0070.00415.48
7.1.280.0000.01115.41
7.1.270.0070.00715.71
7.1.260.0000.00915.68
7.1.200.0040.01115.90
7.1.70.0030.00317.12
7.1.60.0030.00717.30
7.1.50.0110.00016.95
7.1.40.0130.00016.43
7.1.30.0060.00616.76
7.1.20.0080.00416.70
7.1.10.0070.00016.46
7.1.00.0060.00316.65
7.0.200.0000.00716.79
7.0.190.0050.00516.76
7.0.180.0060.00316.30
7.0.170.0000.01016.26
7.0.160.0070.00016.19
7.0.150.0000.00816.21
7.0.140.0030.00616.18
7.0.130.0040.00416.47
7.0.120.0050.00516.52
7.0.110.0000.01216.30
7.0.100.0000.01516.39
7.0.90.0080.00016.27
7.0.80.0000.01016.33
7.0.70.0050.00216.19
7.0.60.0000.01016.31
7.0.50.0000.00816.50
7.0.40.0000.00815.86
7.0.30.0030.01015.86
7.0.20.0000.00715.86
7.0.10.0000.00915.86
7.0.00.0030.00615.86
5.6.300.0000.04320.79
5.6.290.0060.03820.79
5.6.280.0070.04221.07
5.6.270.0100.04120.88
5.6.260.0030.04520.97
5.6.250.0000.04820.90
5.6.240.0000.04920.95
5.6.230.0000.04720.90
5.6.220.0030.04121.03
5.6.210.0000.05421.04
5.6.200.0070.08520.96
5.6.190.0030.04821.02
5.6.180.0070.04520.96
5.6.170.0060.03820.83
5.6.160.0100.03620.82
5.6.150.0070.03920.99
5.6.140.0000.04720.91
5.6.130.0030.04020.98
5.6.120.0070.03720.86
5.6.110.0030.04521.02
5.6.100.0000.04420.72
5.6.90.0030.04321.00
5.6.80.0000.04220.21
5.6.70.0000.04220.19
5.6.60.0030.04220.36
5.6.50.0160.04620.15
5.6.40.0000.08920.39
5.6.30.0060.03920.40
5.6.20.0030.04720.18
5.6.10.0030.04520.38
5.6.00.0070.03420.27
5.5.380.0030.06817.63
5.5.370.0030.04317.48
5.5.360.0070.04717.51
5.5.350.0070.04017.45
5.5.340.0070.04318.07
5.5.330.0030.03818.03
5.5.320.0030.07718.02
5.5.310.0100.03618.09
5.5.300.0070.04517.86
5.5.290.0030.04518.14
5.5.280.0100.06818.01
5.5.270.0030.04118.17
5.5.260.0070.04417.70
5.5.250.0000.04617.52
5.5.240.0070.03817.24
5.5.230.0000.04017.40
5.5.220.0000.04817.46
5.5.210.0030.04117.08
5.5.200.0000.03817.39
5.5.190.0130.03517.21
5.5.180.0070.03917.45
5.5.160.0000.07517.06
5.5.150.0140.04117.48
5.5.140.0000.04517.44
5.5.130.0130.03617.09
5.5.120.0030.04017.38
5.5.110.0030.04217.21
5.5.100.0070.04417.35
5.5.90.0030.03517.28
5.5.80.0000.03917.09
5.5.70.0070.06317.34
5.5.60.0000.04717.27
5.5.50.0030.03817.28
5.5.40.0000.07117.34
5.5.30.0030.03817.32
5.5.20.0070.03717.32
5.5.10.0030.06316.98
5.5.00.0130.03617.26
5.4.450.0000.04919.39
5.4.440.0070.03719.44
5.4.430.0030.04319.39
5.4.420.0030.03719.24
5.4.410.0000.04019.09
5.4.400.0070.03419.06
5.4.390.0030.03719.23
5.4.380.0000.04119.07
5.4.370.0000.04419.11
5.4.360.0030.04719.07
5.4.350.0030.03719.07
5.4.340.0070.03719.20
5.4.320.0030.04219.21
5.4.310.0100.03319.07
5.4.300.0070.03519.13
5.4.290.0030.08218.89
5.4.280.0030.03919.07
5.4.270.0030.03719.07
5.4.260.0030.03819.20
5.4.250.0030.03819.07
5.4.240.0060.03218.97
5.4.230.0070.03318.97
5.4.220.0000.04219.10
5.4.210.0030.03819.20
5.4.200.0060.06118.90
5.4.190.0030.03719.06
5.4.180.0030.03919.13
5.4.170.0070.03319.06
5.4.160.0030.05219.00
5.4.150.0100.07119.06
5.4.140.0070.03216.57
5.4.130.0000.08116.68
5.4.120.0000.06116.76
5.4.110.0060.03216.62
5.4.100.0000.05016.48
5.4.90.0000.04016.80
5.4.80.0030.06416.47
5.4.70.0040.03616.72
5.4.60.0030.03716.62
5.4.50.0030.03416.58
5.4.40.0030.03516.50
5.4.30.0000.06016.67
5.4.20.0070.03316.70
5.4.10.0000.08816.44
5.4.00.0030.03915.91
5.3.290.0000.05215.86
5.3.280.0030.03415.86
5.3.270.0000.04115.86
5.3.260.0030.04715.86
5.3.250.0000.04415.86
5.3.240.0000.04115.86
5.3.230.0070.03215.86
5.3.220.0040.03615.86
5.3.210.0070.03815.86
5.3.200.0030.03515.86
5.3.190.0030.03715.86
5.3.180.0000.04315.86
5.3.170.0000.04915.86
5.3.160.0030.05215.86
5.3.150.0030.03615.86
5.3.140.0070.03415.86
5.3.130.0000.05115.86
5.3.120.0100.06115.86
5.3.110.0030.04815.86
5.3.100.0000.04415.86
5.3.90.0000.03715.86
5.3.80.0070.05615.86
5.3.70.0030.03715.86
5.3.60.0000.03815.86
5.3.50.0000.07615.86
5.3.40.0000.04015.86
5.3.30.0070.05315.86
5.3.20.0060.06715.86
5.3.10.0030.03415.86
5.3.00.0030.03615.86
5.2.170.0060.05815.86
5.2.160.0030.04115.86
5.2.150.0000.03415.86
5.2.140.0030.05715.86
5.2.130.0100.03415.86
5.2.120.0060.04115.86
5.2.110.0000.03415.86
5.2.100.0030.03115.86
5.2.90.0000.04315.86
5.2.80.0000.05515.86
5.2.70.0030.03315.86
5.2.60.0030.02815.86
5.2.50.0030.03815.86
5.2.40.0030.06115.86
5.2.30.0030.02715.86
5.2.20.0060.05215.86
5.2.10.0070.05915.86
5.2.00.0140.02815.86
5.1.60.0000.03115.86
5.1.50.0000.02615.86
5.1.40.0030.02715.86
5.1.30.0000.02815.86
5.1.20.0000.04115.86
5.1.10.0030.03415.86
5.1.00.0060.02215.86
5.0.50.0000.02315.86
5.0.40.0000.02915.86
5.0.30.0030.06615.86
5.0.20.0000.02215.86
5.0.10.0030.04615.86
5.0.00.0030.05315.86
4.4.90.0030.01315.86
4.4.80.0030.01315.86
4.4.70.0000.02215.86
4.4.60.0000.01615.86
4.4.50.0000.01915.86
4.4.40.0040.04215.86
4.4.30.0000.03615.86
4.4.20.0070.01015.86
4.4.10.0030.01315.86
4.4.00.0000.03315.86
4.3.110.0060.03215.86
4.3.100.0030.02815.86
4.3.90.0030.01315.86
4.3.80.0070.02015.86
4.3.70.0030.01615.86
4.3.60.0000.01615.86
4.3.50.0030.01315.86
4.3.40.0030.04415.86
4.3.30.0030.03015.86
4.3.20.0000.03815.86
4.3.10.0040.02515.86
4.3.00.0040.03215.86

preferences:
54.77 ms | 401 KiB | 5 Q