3v4l.org

run code in 300+ PHP versions simultaneously
<?php # similar to $source array, but implemented using a function function getSource() { return [ 'subarray' => ['item' => 'old value ---'] ]; } # $ref3 is assigned to result of getSource() right in the foreach() foreach ( $ref3 = getSource() as &$subarray ) { $subarray['item'] = 'NEW value'; echo $subarray['item'], PHP_EOL; echo $ref3['subarray']['item'], PHP_EOL; } echo 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.70.0030.01416.50
8.3.60.0110.00416.50
8.3.50.0130.00521.14
8.3.40.0090.00918.80
8.3.30.0070.00718.70
8.3.20.0030.00520.31
8.3.10.0040.00423.70
8.3.00.0000.00823.65
8.2.190.0000.01516.75
8.2.180.0100.01016.63
8.2.170.0070.00722.96
8.2.160.0110.00420.37
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0080.00019.89
8.2.120.0000.01426.35
8.2.110.0110.01120.52
8.2.100.0080.00417.84
8.2.90.0040.00419.35
8.2.80.0000.00817.97
8.2.70.0090.00017.63
8.2.60.0040.00417.93
8.2.50.0030.00518.10
8.2.40.0040.00422.38
8.2.30.0080.00019.57
8.2.20.0040.00417.77
8.2.10.0030.00518.18
8.2.00.0040.00418.05
8.1.280.0160.00625.92
8.1.270.0100.01020.32
8.1.260.0030.00628.09
8.1.250.0000.00728.09
8.1.240.0140.00723.77
8.1.230.0060.00617.82
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0000.00817.35
8.1.180.0000.00818.10
8.1.170.0040.00418.48
8.1.160.0040.00420.77
8.1.150.0000.00818.80
8.1.140.0040.00419.50
8.1.130.0070.00017.81
8.1.120.0000.00717.38
8.1.110.0000.00717.49
8.1.100.0000.00717.50
8.1.90.0000.00717.39
8.1.80.0000.00717.45
8.1.70.0030.00317.46
8.1.60.0040.00417.61
8.1.50.0040.00417.45
8.1.40.0000.00817.43
8.1.30.0060.00317.64
8.1.20.0000.00717.53
8.1.10.0080.00017.49
8.1.00.0000.00717.44
8.0.300.0080.00019.92
8.0.290.0040.00416.63
8.0.280.0000.00718.46
8.0.270.0000.00717.28
8.0.260.0000.00717.20
8.0.250.0000.00716.93
8.0.240.0000.00816.86
8.0.230.0000.00716.96
8.0.220.0030.00316.96
8.0.210.0040.00416.86
8.0.200.0060.00016.97
8.0.190.0000.00816.98
8.0.180.0060.00316.89
8.0.170.0040.00416.91
8.0.160.0070.00016.86
8.0.150.0040.00416.77
8.0.140.0000.00716.75
8.0.130.0030.00313.41
8.0.120.0040.00416.79
8.0.110.0050.00416.80
8.0.100.0070.00016.76
8.0.90.0040.00416.86
8.0.80.0090.00916.87
8.0.70.0070.00016.96
8.0.60.0000.00816.73
8.0.50.0000.00816.98
8.0.30.0070.00717.10
8.0.20.0210.01317.40
8.0.10.0080.00016.92
8.0.00.0130.00616.61
7.4.330.0020.00216.76
7.4.320.0040.00416.53
7.4.300.0050.00316.43
7.4.290.0070.00016.63
7.4.280.0030.00616.55
7.4.270.0000.00616.42
7.4.260.0060.00016.52
7.4.250.0080.00016.48
7.4.240.0000.00816.54
7.4.230.0000.00716.63
7.4.220.0150.00616.48
7.4.210.0070.01116.52
7.4.200.0040.00416.64
7.4.160.0060.01816.58
7.4.150.0100.00617.40
7.4.140.0130.00517.86
7.4.130.0140.00516.50
7.4.120.0090.00816.63
7.4.110.0030.01316.41
7.4.100.0000.01816.50
7.4.90.0160.00316.65
7.4.80.0100.00719.39
7.4.70.0140.00316.57
7.4.60.0070.01116.65
7.4.50.0030.01316.33
7.4.40.0150.00016.36
7.4.30.0140.00516.59
7.4.00.0070.00714.91
7.3.330.0000.00613.30
7.3.320.0050.00013.34
7.3.310.0000.00816.16
7.3.300.0030.00316.14
7.3.290.0100.00616.22
7.3.280.0090.00716.28
7.3.270.0170.00717.40
7.3.260.0110.00616.27
7.3.250.0150.00516.30
7.3.240.0100.00716.44
7.3.230.0060.01216.51
7.3.210.0070.01316.54
7.3.200.0160.00419.39
7.3.190.0130.00316.28
7.3.180.0120.00416.27
7.3.170.0000.01616.39
7.3.160.0030.01316.43
7.2.330.0130.00616.65
7.2.320.0120.00616.59
7.2.310.0120.00616.84
7.2.300.0060.01316.39
7.2.290.0100.00916.54
7.2.60.0060.00816.79
7.2.00.0080.00619.63
7.1.200.0000.01015.91
7.1.100.0090.00917.93
7.1.70.0080.00017.19
7.1.60.0120.00919.30
7.1.50.0130.01017.15
7.1.00.0000.08022.42
7.0.200.0000.00816.95
7.0.60.0170.08021.63
7.0.50.0030.04017.87
7.0.40.0030.04720.24
7.0.30.0230.03320.26
7.0.20.0230.05020.12
7.0.10.0130.08020.20
7.0.00.0030.04320.10
5.6.280.0100.02320.89
5.6.210.0030.08320.48
5.6.200.0100.06018.23
5.6.190.0070.08720.33
5.6.180.0600.06720.48
5.6.170.0200.05320.47
5.6.160.0070.08720.50
5.6.150.0130.07318.18
5.6.140.0100.07718.14
5.6.130.0000.04318.17
5.6.120.0070.08321.00
5.6.110.0070.06721.00
5.6.100.0130.07320.98
5.6.90.0070.04020.96
5.6.80.0030.04720.41
5.5.350.0200.04320.50
5.5.340.0130.07317.95
5.5.330.0130.03320.26
5.5.320.0570.05720.31
5.5.310.0130.04720.30
5.5.300.0170.07017.99
5.5.290.0100.05317.95
5.5.280.0130.06320.96
5.5.270.0030.08720.77
5.5.260.0100.06020.76
5.5.250.0070.08320.66
5.5.240.0130.07720.35

preferences:
50.98 ms | 401 KiB | 5 Q