3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $something = []; public function __construct() { $this->something['somethingElse'] = 'yes'; } public function bar() { $baseProperty = 'something'; $index = 'somethingElse'; echo $this->{$baseProperty}[$index]; } } (new Foo)->bar();

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.0040.01418.43
8.3.50.0110.00721.20
8.3.40.0060.00918.93
8.3.30.0210.00020.36
8.3.20.0080.00020.12
8.3.10.0040.00422.10
8.3.00.0050.00322.52
8.2.180.0110.01116.50
8.2.170.0140.00022.96
8.2.160.0100.00720.35
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0030.00519.77
8.2.110.0060.00322.18
8.2.100.0070.00417.91
8.2.90.0080.00019.40
8.2.80.0070.00019.34
8.2.70.0030.00617.75
8.2.60.0000.00817.92
8.2.50.0080.00018.07
8.2.40.0060.00318.28
8.2.30.0030.00618.13
8.2.20.0080.00017.79
8.2.10.0000.00917.66
8.2.00.0040.00417.68
8.1.280.0150.00625.92
8.1.270.0050.00324.66
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.13
8.1.230.0040.00719.10
8.1.220.0050.00317.78
8.1.210.0050.00318.77
8.1.200.0030.00617.23
8.1.190.0030.00517.68
8.1.180.0000.00720.24
8.1.170.0000.00818.61
8.1.160.0000.00722.13
8.1.150.0000.00718.55
8.1.140.0040.00417.36
8.1.130.0000.00917.74
8.1.120.0030.00517.50
8.1.110.0000.00917.42
8.1.100.0090.00017.45
8.1.90.0050.00217.50
8.1.80.0000.00717.51
8.1.70.0000.00717.35
8.1.60.0000.00817.53
8.1.50.0000.00717.46
8.1.40.0050.00317.40
8.1.30.0060.00317.50
8.1.20.0040.00417.49
8.1.10.0060.00317.46
8.1.00.0040.00717.53
8.0.300.0040.00418.77
8.0.290.0080.00017.16
8.0.280.0030.00318.44
8.0.270.0000.00717.29
8.0.260.0030.00316.73
8.0.250.0030.00316.88
8.0.240.0000.00916.92
8.0.230.0070.00016.83
8.0.220.0000.00716.92
8.0.210.0000.00716.91
8.0.200.0030.00316.96
8.0.190.0030.00316.97
8.0.180.0050.00216.81
8.0.170.0000.00716.81
8.0.160.0070.00016.83
8.0.150.0000.00716.79
8.0.140.0040.00416.87
8.0.130.0000.00513.24
8.0.120.0050.00316.76
8.0.110.0040.00416.76
8.0.100.0000.00716.94
8.0.90.0000.00716.77
8.0.80.0060.00916.77
8.0.70.0040.00416.91
8.0.60.0050.00316.88
8.0.50.0070.00016.80
8.0.30.0110.00817.22
8.0.20.0080.01517.40
8.0.10.0070.00016.88
8.0.00.0150.00716.90
7.4.330.0030.00315.00
7.4.320.0040.00416.56
7.4.300.0000.00616.41
7.4.290.0040.00416.61
7.4.280.0000.00716.50
7.4.270.0040.00416.54
7.4.260.0030.00316.63
7.4.250.0050.00316.54
7.4.240.0030.00316.48
7.4.230.0070.00016.50
7.4.220.0160.00016.54
7.4.210.0090.00716.59
7.4.200.0000.00716.63
7.4.190.0000.00716.45
7.4.160.0080.00816.69
7.4.150.0080.00917.40
7.4.140.0070.01117.86
7.4.130.0090.01016.50
7.4.120.0090.00816.38
7.4.110.0070.01116.49
7.4.100.0030.01516.45
7.4.90.0110.00816.61
7.4.80.0170.00319.39
7.4.70.0100.00716.61
7.4.60.0030.01316.48
7.4.50.0060.00316.33
7.4.40.0040.01122.77
7.4.30.0060.01016.62
7.4.00.0040.01115.13
7.3.330.0050.00013.15
7.3.320.0030.00313.32
7.3.310.0040.00416.15
7.3.300.0070.00016.24
7.3.290.0060.00916.43
7.3.280.0070.01116.36
7.3.270.0120.00417.40
7.3.260.0090.01216.63
7.3.250.0150.00516.45
7.3.240.0060.01016.43
7.3.230.0090.00916.39
7.3.210.0100.00716.34
7.3.200.0140.00319.39
7.3.190.0130.01016.25
7.3.180.0070.01016.24
7.3.170.0100.01016.53
7.3.160.0210.00316.72
7.3.120.0100.00615.02
7.3.10.0040.01115.97
7.3.00.0090.00616.21
7.2.330.0110.00616.60
7.2.320.0100.00716.73
7.2.310.0080.00816.45
7.2.300.0070.01016.78
7.2.290.0080.01216.53
7.2.130.0060.01016.55
7.2.120.0060.01216.30
7.2.110.0100.00816.35
7.2.100.0100.00716.59
7.2.90.0100.00316.42
7.2.80.0110.00716.52
7.2.70.0070.01016.83
7.2.60.0070.00716.61
7.2.50.0100.00716.87
7.2.40.0060.00916.85
7.2.30.0060.00916.66
7.2.20.0100.00016.83
7.2.10.0070.01016.80
7.2.00.0080.00418.10
7.1.250.0000.01615.38
7.1.200.0090.00815.81
7.1.100.0030.01018.30
7.1.70.0000.00716.66
7.1.60.0180.00619.43
7.1.50.0070.01416.64
7.1.00.0000.06022.35
7.0.200.0090.00316.64
7.0.140.0070.07022.09
7.0.60.0070.03720.05
7.0.50.0030.08717.86
7.0.40.0070.08720.11
7.0.30.0330.07320.21
7.0.20.0330.07720.25
7.0.10.0030.07720.10
7.0.00.0070.07720.32
5.6.280.0030.07020.79
5.6.210.0030.07320.73
5.6.200.0130.06018.12
5.6.190.0030.04720.63
5.6.180.0270.04320.50
5.6.170.0200.03720.52
5.6.160.0100.08320.71
5.6.150.0000.06318.19
5.6.140.0100.07718.28
5.6.130.0030.04018.27
5.6.120.0070.07321.13
5.6.110.0100.07721.00
5.6.100.0100.07721.11
5.6.90.0100.07720.98
5.6.80.0030.08320.36
5.5.350.0000.07720.44
5.5.340.0130.04717.93
5.5.330.0000.04720.27
5.5.320.0030.06720.30
5.5.310.0300.07320.19
5.5.300.0000.08317.96
5.5.290.0030.08718.08
5.5.280.0030.05020.74
5.5.270.0070.04720.65
5.5.260.0030.04020.84
5.5.250.0000.04320.59
5.5.240.0170.02720.25
5.4.450.0270.05019.46
5.4.440.0670.04019.46
5.4.430.0370.04719.47
5.4.420.0430.06019.16
5.4.410.0470.05319.30
5.4.400.0600.03019.25
5.4.390.0900.04319.05
5.4.380.0800.05318.75
5.4.370.0970.06318.55
5.4.360.0900.04718.59
5.4.350.0830.06018.74
5.4.340.0670.05718.73
5.4.320.0070.03512.50
5.4.310.0060.03712.50
5.4.300.0090.03812.50
5.4.290.0090.03912.50
5.4.280.0080.03412.40
5.4.270.0060.04012.40
5.4.260.0060.03812.40
5.4.250.0070.06718.74
5.4.240.0170.04718.65
5.4.230.0170.05018.95
5.4.220.0100.08018.96
5.4.210.0100.07018.79
5.4.200.0070.05318.97
5.4.190.0070.05318.76
5.4.180.0100.06718.83
5.4.170.0070.05318.78
5.4.160.0170.05018.92
5.4.150.0170.06018.97
5.4.140.0130.04716.52
5.4.130.0230.05716.33
5.4.120.0230.05316.41
5.4.110.0200.06016.62
5.4.100.0000.05716.55
5.4.90.0130.05316.66
5.4.80.0100.07016.60
5.4.70.0100.04716.37
5.4.60.0170.04316.47
5.4.50.0270.04716.44
5.4.40.0130.06016.53
5.4.30.0200.04016.33
5.4.20.0070.07016.45
5.4.10.0070.05316.29
5.4.00.0230.04015.76
5.3.290.0040.04112.80
5.3.280.0200.06014.42
5.3.270.0030.05714.51
5.3.260.0130.05014.69
5.3.250.0300.03014.83
5.3.240.0170.04714.68
5.3.230.0170.05714.82
5.3.220.0130.07314.63
5.3.210.0200.05314.55
5.3.200.0130.07014.64
5.3.190.0200.04314.73
5.3.180.0030.08014.58
5.3.170.0100.04714.62
5.3.160.0070.05314.65
5.3.150.0130.05014.46
5.3.140.0030.05314.61
5.3.130.0030.05714.63
5.3.120.0130.05014.53
5.3.110.0170.04314.70
5.3.100.0070.05014.25
5.3.90.0170.04714.00
5.3.80.0200.05014.00
5.3.70.0200.04314.10
5.3.60.0100.06014.16
5.3.50.0130.04313.93
5.3.40.0130.04314.02
5.3.30.0070.04713.98
5.3.20.0070.05313.85
5.3.10.0070.06313.73
5.3.00.0130.04313.71
5.2.170.0030.04711.04
5.2.160.0070.04310.98
5.2.150.0030.04711.13
5.2.140.0030.04711.11
5.2.130.0130.05011.06
5.2.120.0130.04711.16
5.2.110.0130.04311.31
5.2.100.0130.03711.16
5.2.90.0070.06311.16
5.2.80.0030.05711.25
5.2.70.0130.04011.26
5.2.60.0100.04311.04
5.2.50.0070.04711.12
5.2.40.0070.03710.99
5.2.30.0100.04010.96
5.2.20.0070.05011.18
5.2.10.0030.04310.76
5.2.00.0070.05310.70
5.1.60.0030.04310.45
5.1.50.0070.05010.45
5.1.40.0100.02710.45
5.1.30.0070.03310.45
5.1.20.0100.04010.45
5.1.10.0030.05010.45
5.1.00.0030.03710.45
5.0.50.0070.02710.45
5.0.40.0100.02310.45
5.0.30.0030.04310.45
5.0.20.0000.03310.45
5.0.10.0070.02310.45
5.0.00.0000.04310.45
4.4.90.0000.02310.46
4.4.80.0000.02710.45
4.4.70.0030.02310.45
4.4.60.0070.01710.45
4.4.50.0000.02310.45
4.4.40.0030.03310.45
4.4.30.0000.02310.45
4.4.20.0000.02310.45
4.4.10.0030.02010.45
4.4.00.0030.03310.45
4.3.110.0030.02010.45
4.3.100.0070.02010.45
4.3.90.0130.02010.45
4.3.80.0030.03310.45
4.3.70.0030.02010.46
4.3.60.0070.01710.46
4.3.50.0070.01710.46
4.3.40.0030.03010.46
4.3.30.0030.02710.46
4.3.20.0000.02310.46
4.3.10.0000.02310.46
4.3.00.0000.01714.48

preferences:
49.02 ms | 400 KiB | 5 Q