3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ary = array(); $ary['foo'] = 'bar'; function my_func(&$ary) { $ary['bar'] = 'foo'; } my_func($ary); var_dump($ary);

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.40.0070.01418.89
8.3.30.0170.00319.09
8.3.20.0040.00420.34
8.3.10.0040.00421.90
8.3.00.0000.00822.38
8.2.170.0110.00422.96
8.2.160.0100.00320.21
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0000.00919.24
8.2.110.0090.00022.22
8.2.100.0070.00419.51
8.2.90.0040.00419.22
8.2.80.0050.00318.04
8.2.70.0050.00317.63
8.2.60.0000.00817.93
8.2.50.0050.00318.07
8.2.40.0080.00418.02
8.2.30.0070.00018.07
8.2.20.0050.00217.64
8.2.10.0040.00417.58
8.2.00.0040.00417.71
8.1.270.0000.00822.11
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0060.00323.79
8.1.230.0110.00019.01
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0090.00017.22
8.1.190.0000.00817.29
8.1.180.0040.00418.35
8.1.170.0090.00318.57
8.1.160.0080.00021.98
8.1.150.0000.00718.48
8.1.140.0000.00717.45
8.1.130.0110.00017.82
8.1.120.0000.00717.40
8.1.110.0000.00717.38
8.1.100.0000.00717.28
8.1.90.0050.00217.24
8.1.80.0030.00517.30
8.1.70.0000.00717.29
8.1.60.0000.00817.51
8.1.50.0050.00317.34
8.1.40.0000.00817.41
8.1.30.0030.00517.64
8.1.20.0030.00517.58
8.1.10.0000.00717.52
8.1.00.0000.00717.51
8.0.300.0040.00418.77
8.0.290.0030.00317.15
8.0.280.0000.00818.29
8.0.270.0000.00717.18
8.0.260.0040.00416.66
8.0.250.0040.00416.86
8.0.240.0030.00716.88
8.0.230.0000.00616.75
8.0.220.0080.00016.79
8.0.210.0040.00416.82
8.0.200.0000.00616.90
8.0.190.0000.00716.92
8.0.180.0000.00716.80
8.0.170.0000.00816.70
8.0.160.0070.00016.84
8.0.150.0000.00816.83
8.0.140.0080.00016.76
8.0.130.0000.00513.22
8.0.120.0050.00316.77
8.0.110.0000.00716.70
8.0.100.0060.00316.84
8.0.90.0000.00716.64
8.0.80.0070.00716.92
8.0.70.0000.00816.71
8.0.60.0070.00016.81
8.0.50.0070.00016.82
8.0.30.0100.01017.06
8.0.20.0090.00917.40
8.0.10.0070.00016.95
8.0.00.0100.00916.68
7.4.330.0000.00515.00
7.4.320.0000.00616.43
7.4.300.0030.00316.51
7.4.290.0070.00016.54
7.4.280.0030.00316.61
7.4.270.0060.00316.61
7.4.260.0000.00716.57
7.4.250.0030.00616.39
7.4.240.0020.00616.47
7.4.230.0000.00716.68
7.4.220.0060.01216.55
7.4.210.0060.01016.59
7.4.200.0000.00716.60
7.4.190.0000.00716.69
7.4.160.0030.01216.57
7.4.150.0130.00417.40
7.4.140.0100.00817.86
7.4.130.0100.00916.51
7.4.120.0150.00616.53
7.4.110.0110.01116.41
7.4.100.0160.00716.35
7.4.90.0130.00716.56
7.4.80.0110.00619.39
7.4.70.0040.01216.65
7.4.60.0130.00316.29
7.4.50.0000.00816.36
7.4.40.0040.01122.77
7.4.30.0120.00316.59
7.4.00.0070.01014.96
7.3.330.0000.00513.30
7.3.320.0000.00613.10
7.3.310.0000.00716.26
7.3.300.0030.00316.30
7.3.290.0130.01016.37
7.3.280.0110.00516.25
7.3.270.0170.00017.40
7.3.260.0070.01016.20
7.3.250.0150.00316.26
7.3.240.0150.00316.31
7.3.230.0110.00616.55
7.3.210.0110.00716.30
7.3.200.0180.00619.39
7.3.190.0040.01316.62
7.3.180.0100.00716.22
7.3.170.0100.01016.27
7.3.160.0060.01016.31
7.3.120.0070.00714.48
7.2.330.0100.00716.40
7.2.320.0060.01116.40
7.2.310.0140.00916.59
7.2.300.0060.01216.60
7.2.290.0000.01616.66
7.2.60.0060.00916.41
7.2.00.0060.00619.23
7.1.200.0120.00015.71
7.1.100.0220.00718.23
7.1.70.0040.00417.24
7.1.60.0100.01319.82
7.1.50.0090.01316.96
7.1.00.0030.07322.48
7.0.200.0110.00016.73
7.0.140.0100.06722.21
7.0.60.0130.08019.95
7.0.50.0000.07317.84
7.0.40.0100.08320.23
7.0.30.0170.04020.12
7.0.20.0200.04320.20
7.0.10.0130.07720.32
7.0.00.0030.04320.20
5.6.280.0070.06721.07
5.6.210.0070.04320.47
5.6.200.0100.03318.21
5.6.190.0070.04020.40
5.6.180.3930.04020.50
5.6.170.0200.05320.58
5.6.160.0070.07020.48
5.6.150.0000.04318.29
5.6.140.0100.05718.28
5.6.130.0130.07018.17
5.6.120.0100.05721.14
5.6.110.0100.08320.90
5.6.100.0100.08320.98
5.6.90.0330.05321.13
5.6.80.0000.04320.51
5.5.350.0230.07020.40
5.5.340.0030.08717.99
5.5.330.0100.04720.21
5.5.320.3270.04020.35
5.5.310.0100.04320.20
5.5.300.0100.06317.98
5.5.290.0070.03717.95
5.5.280.0100.05720.90
5.5.270.0030.05020.66
5.5.260.0030.08320.76
5.5.250.0030.04020.50
5.5.240.4030.04320.12
5.4.450.0600.06319.47
5.4.440.0700.05019.34
5.4.430.0070.06019.55
5.4.420.0100.05719.23
5.4.410.0130.05319.41
5.4.400.0870.00018.84
5.4.390.0870.00018.60
5.4.380.0130.06318.52
5.4.370.0230.05018.78
5.4.360.0230.05318.80
5.4.350.0270.05718.80
5.4.340.0230.05718.77
5.4.320.0060.04412.50
5.4.310.0060.03812.50
5.4.300.0060.03912.50
5.4.290.0090.04912.50
5.4.280.0090.03712.40
5.4.270.0100.04312.40
5.4.260.0030.05719.00
5.4.250.0030.06018.80
5.4.240.0100.05319.00
5.4.230.0130.05318.77
5.4.220.0100.08019.03
5.4.210.0100.07318.81
5.4.200.0200.04718.80
5.4.190.0030.06019.00
5.4.180.0100.07018.83
5.4.170.0100.07018.75
5.4.160.0070.05318.91
5.4.150.0070.05318.73
5.4.140.0170.04316.35
5.4.130.0030.05316.38
5.4.120.0000.06316.44
5.4.110.0130.05016.42
5.4.100.0100.07316.64
5.4.90.0100.04716.53
5.4.80.0100.06016.48
5.4.70.0170.05716.58
5.4.60.0100.05016.48
5.4.50.0070.05316.50
5.4.40.0200.04316.58
5.4.30.0070.05016.46
5.4.20.0170.04716.38
5.4.10.0070.05716.47
5.4.00.0070.07015.79
5.3.290.0090.04812.80
5.3.280.0100.04714.59
5.3.270.0070.06714.68
5.3.260.0030.07714.76
5.3.250.0030.05714.77
5.3.240.0170.06714.77
5.3.230.0130.07014.73
5.3.220.0070.07314.74
5.3.210.0170.04314.48
5.3.200.0130.04314.53
5.3.190.0100.07314.65
5.3.180.0130.04314.56
5.3.170.0070.05714.73
5.3.160.0000.06014.69
5.3.150.0000.05714.39
5.3.140.0030.06714.64
5.3.130.0100.05314.77
5.3.120.0100.05314.61
5.3.110.0100.05014.76
5.3.100.0100.05014.25
5.3.90.0030.07314.03
5.3.80.0100.05014.03
5.3.70.0070.05014.02
5.3.60.0130.04313.90
5.3.50.0000.05714.02
5.3.40.0070.05314.17
5.3.30.0030.05713.97
5.3.20.0030.05313.87
5.3.10.0100.05313.71
5.3.00.0100.04713.80
5.2.170.0100.04011.30
5.2.160.0070.05311.23
5.2.150.0070.05711.13
5.2.140.0030.05011.21
5.2.130.0030.04311.10
5.2.120.0100.03711.31
5.2.110.0070.04011.32
5.2.100.0100.03711.09
5.2.90.0070.04011.18
5.2.80.0070.04011.26
5.2.70.0070.04011.05
5.2.60.0100.03711.14
5.2.50.0200.04011.01
5.2.40.0130.04711.00
5.2.30.0130.03311.04
5.2.20.0070.04011.11
5.2.10.0100.04711.02
5.2.00.0000.04310.69
5.1.60.0070.0409.97
5.1.50.0030.03710.05
5.1.40.0000.04710.13
5.1.30.0030.04310.40
5.1.20.0070.04710.17
5.1.10.0030.03710.07
5.1.00.0030.03710.22
5.0.50.0070.0278.61
5.0.40.0100.0208.64
5.0.30.0030.0438.46
5.0.20.0100.0208.14
5.0.10.0070.0308.21
5.0.00.0100.0378.22
4.4.90.0070.0177.46
4.4.80.0000.0237.46
4.4.70.0030.0207.46
4.4.60.0000.0237.46
4.4.50.0030.0207.46
4.4.40.0030.0377.46
4.4.30.0030.0237.46
4.4.20.0000.0237.46
4.4.10.0030.0207.46
4.4.00.0030.0337.46
4.3.110.0070.0207.46
4.3.100.0030.0207.46
4.3.90.0000.0237.46
4.3.80.0000.0437.46
4.3.70.0000.0237.46
4.3.60.0000.0277.46
4.3.50.0070.0207.46
4.3.40.0030.0307.46
4.3.30.0070.0237.46
4.3.20.0000.0237.46
4.3.10.0100.0137.46
4.3.00.0070.0277.25

preferences:
51.58 ms | 400 KiB | 5 Q