3v4l.org

run code in 300+ PHP versions simultaneously
<?php function f($ar = array(), &$gl = array()) { $gl[0] = array($ar[1]); } $globals = array(); $array_example = array('foo', 'bar'); f($array_example, $globals); print_r($globals);

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.0150.00018.56
8.3.50.0070.00717.95
8.3.40.0110.00418.65
8.3.30.0120.00318.85
8.3.20.0040.00421.89
8.3.10.0080.00023.70
8.3.00.0080.00021.73
8.2.180.0110.00316.88
8.2.170.0110.00322.96
8.2.160.0100.00322.09
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0070.00019.24
8.2.120.0050.00326.35
8.2.110.0030.00722.24
8.2.100.0080.00417.78
8.2.90.0060.00319.21
8.2.80.0060.00317.97
8.2.70.0040.00417.62
8.2.60.0040.00418.04
8.2.50.0000.00818.22
8.2.40.0000.00822.24
8.2.30.0040.00421.08
8.2.20.0040.00418.06
8.2.10.0040.00418.04
8.2.00.0040.00418.05
8.1.280.0110.00725.92
8.1.270.0050.00323.99
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.94
8.1.230.0070.00419.07
8.1.220.0030.00617.74
8.1.210.0100.00018.77
8.1.200.0030.00617.35
8.1.190.0040.00417.23
8.1.180.0000.00718.10
8.1.170.0030.00518.46
8.1.160.0000.00718.88
8.1.150.0050.00318.85
8.1.140.0070.00019.07
8.1.130.0040.00417.84
8.1.120.0000.00717.43
8.1.110.0060.00317.34
8.1.100.0080.00017.42
8.1.90.0050.00217.32
8.1.80.0040.00417.47
8.1.70.0040.00417.33
8.1.60.0040.00417.62
8.1.50.0040.00417.55
8.1.40.0040.00417.50
8.1.30.0030.00617.53
8.1.20.0040.00417.59
8.1.10.0000.00717.56
8.1.00.0040.00417.48
8.0.300.0040.00419.89
8.0.290.0040.00416.88
8.0.280.0020.00518.50
8.0.270.0030.00317.25
8.0.260.0060.00017.21
8.0.250.0070.00016.92
8.0.240.0060.00016.99
8.0.230.0070.00016.96
8.0.220.0040.00416.87
8.0.210.0040.00416.86
8.0.200.0030.00316.91
8.0.190.0050.00316.95
8.0.180.0040.00416.77
8.0.170.0030.00616.91
8.0.160.0040.00416.92
8.0.150.0000.00716.84
8.0.140.0030.00316.73
8.0.130.0030.00313.35
8.0.120.0000.00716.80
8.0.110.0080.00016.86
8.0.100.0000.00716.75
8.0.90.0070.00016.76
8.0.80.0060.00916.86
8.0.70.0040.00416.84
8.0.60.0070.00016.67
8.0.50.0080.00016.91
8.0.30.0090.00917.05
8.0.20.0070.01117.40
8.0.10.0040.00417.05
8.0.00.0120.00916.83
7.4.330.0000.00615.55
7.4.320.0060.00016.48
7.4.300.0070.00016.45
7.4.290.0030.00616.44
7.4.280.0000.00816.56
7.4.270.0070.00016.59
7.4.260.0030.00316.59
7.4.250.0000.00916.36
7.4.240.0000.00716.61
7.4.230.0070.00016.63
7.4.220.0040.00416.58
7.4.210.0070.00716.61
7.4.200.0030.00316.25
7.4.160.0040.01116.50
7.4.150.0100.00717.40
7.4.140.0080.01217.86
7.4.130.0000.01716.59
7.4.120.0130.01016.47
7.4.110.0060.00916.63
7.4.100.0100.00716.66
7.4.90.0040.01416.35
7.4.80.0070.01319.39
7.4.70.0130.00616.51
7.4.60.0100.01016.49
7.4.50.0060.00616.45
7.4.40.0100.00616.39
7.4.00.0110.00015.00
7.3.330.0050.00013.25
7.3.320.0040.00413.32
7.3.310.0000.00716.32
7.3.300.0030.00316.31
7.3.290.0090.01016.32
7.3.280.0120.00516.31
7.3.270.0080.00817.40
7.3.260.0090.01016.36
7.3.250.0100.00816.35
7.3.240.0130.00716.25
7.3.230.0160.00416.52
7.3.210.0130.00316.21
7.3.200.0080.00816.59
7.3.190.0080.00816.38
7.3.180.0090.00616.49
7.3.170.0120.00616.44
7.3.160.0030.01516.28
7.3.10.0130.01016.45
7.3.00.0120.00416.42
7.2.330.0140.01016.48
7.2.320.0100.00716.37
7.2.310.0110.01116.69
7.2.300.0030.01416.62
7.2.290.0140.00316.72
7.2.130.0080.00816.64
7.2.120.0070.01416.60
7.2.110.0090.00916.58
7.2.100.0110.00516.70
7.2.90.0190.00316.66
7.2.80.0080.01116.69
7.2.70.0160.00017.03
7.2.60.0150.00516.87
7.2.50.0060.00616.63
7.2.40.0160.00416.45
7.2.30.0090.00616.61
7.2.20.0090.00616.59
7.2.10.0130.00816.77
7.2.00.0160.00517.33
7.1.250.0090.00915.58
7.1.200.0060.00615.89
7.1.120.0130.01516.83
7.1.110.0190.00715.99
7.1.100.0540.00916.11
7.1.90.0220.00916.21
7.1.80.0240.01216.18
7.1.70.0210.01715.13
7.1.60.0460.00933.35
7.1.50.0380.02233.09
7.1.40.0300.01032.80
7.1.30.0750.01632.58
7.1.20.0260.01632.81
7.1.10.0260.01314.71
7.1.00.0210.00714.82

preferences:
32.35 ms | 400 KiB | 5 Q