3v4l.org

run code in 300+ PHP versions simultaneously
<?php $teste = new stdClass(); $teste->a = 1; $teste->b = 2; function test_func($input){ foreach( $input as $key => $value ){ $input[$key] = $value++; var_dump($key, $value); } return $input; } test_func($teste); var_dump($teste);

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.0140.00716.50
8.3.50.0110.01122.08
8.3.40.0090.00918.80
8.3.30.0100.00318.70
8.3.20.0050.00220.09
8.3.10.0080.00023.68
8.3.00.0030.00519.91
8.2.180.0140.00716.63
8.2.170.0150.00022.96
8.2.160.0100.00320.58
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0090.00019.30
8.2.120.0030.00526.35
8.2.110.0040.00420.51
8.2.100.0040.00817.93
8.2.90.0000.00819.08
8.2.80.0000.00817.97
8.2.70.0090.00017.63
8.2.60.0000.00818.04
8.2.50.0080.00018.07
8.2.40.0080.00022.32
8.2.30.0000.00720.68
8.2.20.0070.00017.61
8.2.10.0050.00218.06
8.2.00.0000.00718.00
8.1.280.0130.00725.92
8.1.270.0030.00520.21
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0000.00922.23
8.1.230.0040.00817.47
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0030.00717.35
8.1.190.0060.00317.13
8.1.180.0000.00818.10
8.1.170.0030.00618.65
8.1.160.0040.00420.74
8.1.150.0040.00418.88
8.1.140.0000.00819.49
8.1.130.0000.00817.64
8.1.120.0070.00017.52
8.1.110.0040.00417.47
8.1.100.0040.00417.48
8.1.90.0030.00517.35
8.1.80.0000.00717.44
8.1.70.0060.00317.41
8.1.60.0000.00917.46
8.1.50.0030.00617.49
8.1.40.0030.00517.50
8.1.30.0080.00017.58
8.1.20.0030.00517.65
8.1.10.0060.00317.56
8.1.00.0030.00517.46
8.0.300.0050.00218.77
8.0.290.0040.00416.75
8.0.280.0000.00718.36
8.0.270.0040.00417.18
8.0.260.0030.00617.24
8.0.250.0030.00316.99
8.0.240.0000.00717.04
8.0.230.0000.00716.91
8.0.220.0040.00416.99
8.0.210.0000.00717.03
8.0.200.0060.00016.99
8.0.190.0040.00416.92
8.0.180.0000.00716.82
8.0.170.0000.01016.99
8.0.160.0000.00716.94
8.0.150.0040.00416.86
8.0.140.0040.00416.81
8.0.130.0000.00513.46
8.0.120.0000.00816.88
8.0.110.0000.00716.81
8.0.100.0040.00416.99
8.0.90.0050.00216.96
8.0.80.0030.01216.88
8.0.70.0080.00016.93
8.0.60.0000.00816.83
8.0.50.0000.00816.86
8.0.30.0140.00417.13
8.0.20.0070.01317.40
8.0.10.0070.00016.94
8.0.00.0140.00616.88
7.4.330.0000.00516.75
7.4.320.0060.00016.59
7.4.300.0030.00316.60
7.4.290.0040.00416.60
7.4.280.0080.00016.41
7.4.270.0070.00016.47
7.4.260.0000.00716.47
7.4.250.0000.00716.42
7.4.240.0050.00216.50
7.4.230.0000.00716.65
7.4.220.0040.01216.54
7.4.210.0070.00816.70
7.4.200.0000.00716.47
7.4.160.0110.00416.36
7.4.150.0130.00317.40
7.4.140.0140.00917.86
7.4.130.0080.01016.43
7.4.120.0130.00516.50
7.4.110.0060.01316.48
7.4.100.0070.01116.63
7.4.90.0070.01016.57
7.4.80.0140.00719.39
7.4.70.0110.00616.63
7.4.60.0090.00616.34
7.4.50.0000.01616.48
7.4.40.0040.01916.45
7.4.30.0150.00016.50
7.4.00.0100.00314.90
7.3.330.0060.00013.34
7.3.320.0030.00313.33
7.3.310.0030.00316.38
7.3.300.0060.00016.36
7.3.290.0060.00016.35
7.3.280.0070.01016.38
7.3.270.0110.00617.40
7.3.260.0130.00316.27
7.3.250.0100.00916.54
7.3.240.0070.01116.49
7.3.230.0060.01216.39
7.3.210.0070.01416.39
7.3.200.0040.01316.32
7.3.190.0090.01216.62
7.3.180.0120.00616.54
7.3.170.0100.00716.48
7.3.160.0060.01316.40
7.3.10.0110.01416.27
7.3.00.0190.01116.35
7.2.330.0110.00816.68
7.2.320.0070.01116.46
7.2.310.0030.01416.57
7.2.300.0170.00016.68
7.2.290.0130.00316.87
7.2.130.0240.00316.73
7.2.120.0170.01316.63
7.2.110.0170.00916.64
7.2.100.0180.01316.67
7.2.90.0170.00516.57
7.2.80.0120.01316.56
7.2.70.0170.00416.68
7.2.60.0130.01016.87
7.2.50.0180.00916.73
7.2.40.0190.00616.48
7.2.30.0120.01616.87
7.2.20.0130.01016.71
7.2.10.0130.01616.81
7.2.00.0080.00718.06
7.1.250.0070.01715.21
7.1.200.0040.01115.91
7.1.100.0030.00917.91
7.1.70.0060.00916.93
7.1.60.0070.01819.52
7.1.50.0260.00634.86
7.1.00.0130.06722.57
7.0.200.0290.00316.40
7.0.60.0070.08320.03
7.0.50.0030.08717.90
7.0.40.0100.08720.23
7.0.30.0330.07720.07
7.0.20.0230.06720.34
7.0.10.0000.05020.22
7.0.00.0270.05020.15
5.6.280.0000.03320.91
5.6.210.0100.03320.60
5.6.200.0130.07718.29
5.6.190.0130.06320.47
5.6.180.0370.07320.64
5.6.170.0370.07320.57
5.6.160.0100.07320.62
5.6.150.0100.07318.18
5.6.140.0130.05018.15
5.6.130.0070.06318.17
5.6.120.0170.07320.99
5.6.110.0100.07721.12
5.6.100.0070.08021.00
5.6.90.0100.03720.98
5.6.80.0000.04320.52
5.5.350.0130.07020.34
5.5.340.0070.06317.99
5.5.330.0030.08320.29
5.5.320.0630.06720.32
5.5.310.0370.06320.36
5.5.300.0000.04318.00
5.5.290.0030.08017.93
5.5.280.0200.07720.78
5.5.270.0100.04020.65
5.5.260.0070.08320.79
5.5.250.0000.05320.71
5.5.240.0270.08320.18

preferences:
48.95 ms | 401 KiB | 5 Q