3v4l.org

run code in 300+ PHP versions simultaneously
<?php use stdClass; $item = new stdClass; $champs = new stdClass; $champs->foo_value = 'My foo'; $champs->bar_value = 'Your bar'; $champs->baz_value = 'Their baz'; $item->champs = $champs; foreach(array('foo', 'bar', 'baz') as $truc) { echo $item->champs->{$truc . '_value'}, PHP_EOL; }

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.0100.00716.63
8.3.50.0100.00822.04
8.3.40.0110.01118.68
8.3.30.0100.00319.09
8.3.20.0040.00419.97
8.3.10.0070.00023.48
8.3.00.0070.00020.81
8.2.180.0110.00416.75
8.2.170.0110.00422.96
8.2.160.0000.01420.47
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0000.00820.77
8.2.110.0030.00622.27
8.2.100.0040.00817.72
8.2.90.0030.00619.13
8.2.80.0040.00417.97
8.2.70.0060.00317.63
8.2.60.0120.00317.90
8.2.50.0040.00418.07
8.2.40.0040.00419.89
8.2.30.0000.00818.18
8.2.20.0040.00417.61
8.2.10.0050.00318.13
8.2.00.0050.00317.57
8.1.280.0140.00025.92
8.1.270.0080.00023.84
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0100.00023.93
8.1.230.0090.00319.09
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0040.00417.35
8.1.180.0000.00818.10
8.1.170.0060.00318.46
8.1.160.0000.00822.07
8.1.150.0040.00418.61
8.1.140.0070.00017.38
8.1.130.0040.00417.91
8.1.120.0000.00817.35
8.1.110.0030.00517.48
8.1.100.0050.00217.52
8.1.90.0040.00417.39
8.1.80.0040.00417.48
8.1.70.0070.00017.48
8.1.60.0070.00417.61
8.1.50.0040.00417.59
8.1.40.0040.00417.41
8.1.30.0060.00317.59
8.1.20.0040.00417.70
8.1.10.0040.00417.63
8.1.00.0000.00817.41
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00718.37
8.0.270.0070.00017.22
8.0.260.0060.00017.20
8.0.250.0030.00316.94
8.0.240.0030.00317.05
8.0.230.0070.00017.04
8.0.220.0030.00316.96
8.0.210.0060.00316.87
8.0.200.0000.00616.92
8.0.190.0000.00716.91
8.0.180.0000.00717.04
8.0.170.0040.00416.89
8.0.160.0000.00716.84
8.0.150.0040.00416.97
8.0.140.0000.00716.79
8.0.130.0050.00013.46
8.0.120.0060.00316.90
8.0.110.0000.00816.92
8.0.100.0000.00716.92
8.0.90.0030.00516.95
8.0.80.0090.01216.99
8.0.70.0000.00716.86
8.0.60.0070.00016.95
8.0.50.0040.00416.84
8.0.30.0090.01317.12
8.0.20.0120.00717.40
8.0.10.0000.00717.08
8.0.00.0110.00616.84
7.4.330.0050.00015.14
7.4.320.0030.00316.54
7.4.300.0030.00316.55
7.4.290.0030.00316.47
7.4.280.0060.00316.46
7.4.270.0030.00316.40
7.4.260.0030.00716.46
7.4.250.0000.00716.46
7.4.240.0050.00316.48
7.4.230.0040.00416.34
7.4.220.0110.00716.34
7.4.210.0070.00816.47
7.4.200.0070.00016.57
7.4.160.0090.00616.68
7.4.150.0160.03217.40
7.4.140.0060.01217.86
7.4.130.0080.00816.56
7.4.120.0110.01116.43
7.4.110.0070.01016.57
7.4.100.0080.00816.40
7.4.90.0090.00816.63
7.4.80.0090.01219.39
7.4.70.0080.00816.61
7.4.60.0160.00316.62
7.4.50.0000.00916.31
7.4.40.0080.00816.63
7.4.30.0140.00816.43
7.4.00.0060.00614.91
7.3.330.0020.00213.13
7.3.320.0060.00013.26
7.3.310.0030.00516.17
7.3.300.0070.00016.13
7.3.290.0160.00316.33
7.3.280.0100.00916.32
7.3.270.0070.01017.40
7.3.260.0130.00516.20
7.3.250.0100.00716.39
7.3.240.0060.01216.36
7.3.230.0030.01416.39
7.3.210.0110.01116.52
7.3.200.0170.00719.39
7.3.190.0130.00316.54
7.3.180.0040.01416.22
7.3.170.0070.01316.35
7.3.160.0070.01016.50
7.3.120.0070.01114.81
7.3.10.0130.00316.50
7.3.00.0140.00616.29
7.2.330.0180.00216.73
7.2.320.0090.00916.79
7.2.310.0160.00016.54
7.2.300.0120.00316.78
7.2.290.0170.00716.34
7.2.130.0100.00716.78
7.2.120.0120.00516.67
7.2.110.0150.00616.89
7.2.100.0190.00716.75
7.2.90.0090.00816.68
7.2.80.0180.00616.75
7.2.70.0080.01016.61
7.2.60.0150.00716.79
7.2.50.0120.00816.91
7.2.40.0090.00616.83
7.2.30.0130.00616.96
7.2.20.0080.00916.69
7.2.10.0050.00816.97
7.2.00.0040.00816.70
7.1.250.0090.00615.36
7.1.200.0090.00315.96
7.1.70.0000.01016.98
7.1.60.0130.01319.70
7.1.50.0040.01416.86
7.1.00.0000.07722.48
7.0.200.0040.00416.69
7.0.140.0030.07022.09
7.0.60.0100.08320.00
7.0.50.0070.03717.79
7.0.40.0070.06320.30
7.0.30.0270.08320.17
7.0.20.0270.06720.16
7.0.10.0130.03320.16
7.0.00.0030.08320.09
5.6.280.0000.07321.00
5.6.210.0000.07020.65
5.6.200.0000.06718.04
5.6.190.0000.04720.56
5.6.180.3870.03720.43
5.6.170.0230.06020.39
5.6.160.0100.03720.37
5.6.150.0100.07718.21
5.6.140.0100.05718.18
5.6.130.0100.08718.20
5.6.120.0100.08021.00
5.6.110.0100.08320.96
5.6.100.0130.07720.97
5.6.90.0170.04021.07
5.6.80.0200.07720.44
5.6.70.4570.03720.47
5.5.350.0370.07320.38
5.5.340.0100.07018.01
5.5.330.0070.08020.19
5.5.320.3700.03720.51
5.5.310.0330.06720.18
5.5.300.0030.04017.95
5.5.290.0070.05318.00
5.5.280.0200.06720.80
5.5.270.0070.04720.77
5.5.260.0100.08720.68
5.5.250.0100.03320.56
5.5.240.0230.07020.36
5.4.450.0870.05319.46
5.4.440.1000.05719.27
5.4.430.0970.05719.56
5.4.420.0870.00019.50
5.4.410.0100.07318.93
5.4.400.0230.05318.51
5.4.390.0270.05318.58
5.4.380.0200.06018.70
5.4.370.0070.05318.70
5.4.360.0170.04018.58
5.4.350.0050.05211.98
5.4.340.0100.03911.98
5.4.320.0090.04712.46
5.4.310.0050.03912.45
5.4.300.0060.04012.46
5.4.290.0070.04012.46
5.4.280.0060.03612.36
5.4.270.0070.03612.36
5.4.260.0070.04512.35
5.4.250.0040.04112.36
5.4.240.0100.03812.35
5.4.230.0120.03712.34
5.4.220.0050.03812.35
5.4.210.0060.03612.35
5.4.200.0040.04012.35
5.4.190.0050.04112.34
5.4.180.0090.03312.34
5.4.170.0060.03612.35
5.4.160.0070.03712.35
5.4.150.0070.03612.35
5.4.140.0060.03712.03
5.4.130.0050.03712.02
5.4.120.0060.03711.97
5.4.110.0080.04711.97
5.4.100.0070.03411.98
5.4.90.0070.03611.98
5.4.80.0110.03211.97
5.4.70.0060.03411.97
5.4.60.0030.03911.97
5.4.50.0030.03911.96
5.4.40.0030.03711.95
5.4.30.0050.03711.95
5.4.20.0080.03511.95
5.4.10.0060.03511.95
5.4.00.0050.03811.44
5.3.290.0100.03612.80
5.3.280.0070.03712.71
5.3.270.0100.03612.72
5.3.260.0070.03912.72
5.3.250.0110.03312.72
5.3.240.0100.03812.72
5.3.230.0070.04012.71
5.3.220.0090.03412.68
5.3.210.0070.03912.68
5.3.200.0090.03712.68
5.3.190.0040.03912.68
5.3.180.0060.03612.67
5.3.170.0050.03812.66
5.3.160.0060.03612.67
5.3.150.0070.03812.68
5.3.140.0110.04712.66
5.3.130.0130.04212.66
5.3.120.0070.03812.66
5.3.110.0070.03912.66
5.3.100.0070.03712.12
5.3.90.0060.03612.08
5.3.80.0060.03712.07
5.3.70.0080.04112.07
5.3.60.0050.03912.06
5.3.50.0080.03312.00
5.3.40.0110.03512.00
5.3.30.0090.03311.95
5.3.20.0040.03711.72
5.3.10.0070.03511.69
5.3.00.0060.03811.68
5.2.170.0070.0289.18
5.2.160.0080.0369.18
5.2.150.0060.0309.18
5.2.140.0040.0329.18
5.2.130.0030.0329.14
5.2.120.0070.0299.14
5.2.110.0040.0369.15
5.2.100.0070.0279.14
5.2.90.0050.0349.14
5.2.80.0060.0299.14
5.2.70.0040.0329.14
5.2.60.0030.0349.08
5.2.50.0070.0399.05
5.2.40.0050.0299.03
5.2.30.0060.0309.01
5.2.20.0060.0299.00
5.2.10.0020.0318.92
5.2.00.0030.0328.79
5.1.60.0050.0238.07
5.1.50.0040.0268.07
5.1.40.0060.0238.05
5.1.30.0030.0288.39
5.1.20.0030.0288.42
5.1.10.0060.0258.14
5.1.00.0040.0278.14
5.0.50.0040.0226.62
5.0.40.0070.0186.48
5.0.30.0030.0346.29
5.0.20.0040.0196.26
5.0.10.0050.0206.23
5.0.00.0030.0316.23
4.4.90.0030.0154.78
4.4.80.0050.0144.75
4.4.70.0040.0144.76
4.4.60.0040.0144.75
4.4.50.0010.0184.77
4.4.40.0010.0284.71
4.4.30.0030.0194.76
4.4.20.0030.0174.85
4.4.10.0050.0144.85
4.4.00.0050.0234.76
4.3.110.0050.0164.67
4.3.100.0020.0164.66
4.3.90.0010.0174.63
4.3.80.0030.0244.59
4.3.70.0030.0144.63
4.3.60.0030.0164.63
4.3.50.0020.0174.63
4.3.40.0040.0234.54
4.3.30.0000.0193.29
4.3.20.0020.0163.27
4.3.10.0000.0183.22
4.3.00.0030.0206.46

preferences:
36.83 ms | 401 KiB | 5 Q