3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr[] = 'test'; function addToArray($arg1, $arg2){ $arr = []; $arr[] = $arg1; $arr[] = $arg2; print_r($arr); } addToArray('test', 'nichtJulian');

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.0170.00316.75
8.3.50.0110.00722.05
8.3.40.0110.00318.43
8.3.30.0090.00618.95
8.3.20.0050.00320.39
8.3.10.0050.00221.69
8.3.00.0040.00419.25
8.2.180.0070.01416.38
8.2.170.0140.00022.96
8.2.160.0110.00720.45
8.2.150.0090.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0080.00019.77
8.2.110.0000.01019.39
8.2.100.0080.00417.75
8.2.90.0000.00719.17
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0060.00317.80
8.2.50.0090.00018.07
8.2.40.0060.00320.00
8.2.30.0050.00317.98
8.2.20.0070.00017.68
8.2.10.0000.00717.99
8.2.00.0040.00417.61
8.1.280.0090.00925.92
8.1.270.0060.00320.77
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0090.00023.98
8.1.230.0120.00017.42
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0000.01017.23
8.1.190.0080.00017.23
8.1.180.0090.00018.10
8.1.170.0030.00520.30
8.1.160.0040.00421.93
8.1.150.0050.00218.93
8.1.140.0000.00717.30
8.1.130.0030.00317.86
8.1.120.0090.00017.39
8.1.110.0020.00517.30
8.1.100.0060.00317.40
8.1.90.0000.00717.43
8.1.80.0000.00817.29
8.1.70.0000.00717.40
8.1.60.0060.00317.62
8.1.50.0030.00517.50
8.1.40.0040.00417.42
8.1.30.0040.00417.71
8.1.20.0000.00817.67
8.1.10.0040.00417.46
8.1.00.0000.00917.31
8.0.300.0070.00018.77
8.0.290.0000.00716.58
8.0.280.0040.00418.42
8.0.270.0040.00417.11
8.0.260.0000.00717.19
8.0.250.0030.00316.79
8.0.240.0030.00316.77
8.0.230.0000.00716.74
8.0.220.0000.00716.80
8.0.210.0030.00316.71
8.0.200.0000.00616.85
8.0.190.0040.00416.86
8.0.180.0070.00016.85
8.0.170.0000.00816.84
8.0.160.0040.00416.79
8.0.150.0030.00316.74
8.0.140.0050.00316.81
8.0.130.0030.00313.21
8.0.120.0070.00016.80
8.0.110.0040.00416.78
8.0.100.0040.00416.86
8.0.90.0070.00316.89
8.0.80.0150.00316.82
8.0.70.0000.00816.73
8.0.60.0030.00516.88
8.0.50.0080.00016.90
8.0.30.0080.01216.78
8.0.20.0130.00817.40
8.0.10.0030.00416.82
8.0.00.0100.01516.60
7.4.330.0030.00315.03
7.4.320.0030.00316.58
7.4.300.0000.00616.49
7.4.290.0030.00316.60
7.4.280.0000.00816.41
7.4.270.0040.00416.52
7.4.260.0040.00416.48
7.4.250.0000.00716.42
7.4.240.0040.00416.47
7.4.230.0030.00316.64
7.4.220.0140.00616.47
7.4.210.0040.01116.70
7.4.200.0040.00416.41
7.4.160.0120.00416.35
7.4.150.0090.01617.40
7.4.140.0020.01617.86
7.4.130.0100.01116.52
7.4.120.0070.00916.54
7.4.110.0220.00316.35
7.4.100.0050.01816.53
7.4.90.0070.01016.49
7.4.80.0130.00319.39
7.4.70.0070.01016.55
7.4.60.0110.00416.39
7.4.50.0050.00016.50
7.4.40.0030.01316.41
7.4.30.0160.00816.54
7.4.00.0050.01214.85
7.3.330.0070.00013.17
7.3.320.0070.00413.10
7.3.310.0030.00316.29
7.3.300.0000.00616.19
7.3.290.0110.00416.30
7.3.280.0070.01016.33
7.3.270.0030.01417.40
7.3.260.0100.00716.48
7.3.250.0090.01116.33
7.3.240.0070.01416.34
7.3.230.0120.00616.39
7.3.210.0180.00016.59
7.3.200.0140.00319.39
7.3.190.0110.00616.59
7.3.180.0070.01016.45
7.3.170.0090.01216.41
7.3.160.0100.00716.49
7.3.120.0070.01014.87
7.3.110.0090.00914.78
7.3.100.0000.01114.59
7.3.90.0040.01114.84
7.3.80.0000.00914.88
7.3.70.0000.01214.68
7.3.60.0030.00914.64
7.3.50.0030.00614.40
7.3.40.0030.01214.37
7.3.30.0000.01614.75
7.3.20.0060.00616.83
7.3.10.0070.00816.44
7.3.00.0080.00516.64
7.2.330.0060.01216.42
7.2.320.0130.00316.63
7.2.310.0110.00616.63
7.2.300.0060.00916.73
7.2.290.0130.00716.43
7.2.250.0130.00614.91
7.2.240.0090.00914.91
7.2.230.0040.00714.65
7.2.220.0070.00715.08
7.2.210.0040.01415.05
7.2.200.0030.01314.88
7.2.190.0150.00014.93
7.2.180.0030.01014.75
7.2.170.0100.00615.04
7.2.130.0080.00816.13
7.2.120.0040.01416.51
7.2.110.0070.01016.56
7.2.100.0040.00716.73
7.2.90.0000.01816.66
7.2.80.0030.00716.83
7.2.70.0190.00316.74
7.2.60.0080.00516.45
7.2.50.0060.01216.64
7.2.40.0110.01116.68
7.2.30.0160.00416.38
7.2.20.0120.00916.79
7.2.10.0090.00916.52
7.2.00.0110.00617.75
7.1.330.0090.00315.82
7.1.320.0080.00515.91
7.1.310.0000.01215.34
7.1.300.0100.00315.75
7.1.290.0060.00915.32
7.1.280.0030.01215.70
7.1.270.0000.01615.86
7.1.260.0050.00515.78
7.1.250.0000.01015.76
7.1.100.0000.01118.14
7.1.70.0090.00017.00
7.1.60.0150.00919.50
7.1.50.0030.01716.95
7.1.00.0070.07322.45
7.0.200.0040.00416.41
7.0.140.0130.06722.07
7.0.60.0130.07019.91
7.0.50.0070.03717.87
7.0.40.0070.04320.13
7.0.30.0330.07320.25
7.0.20.0170.05020.04
7.0.10.0270.07320.10
7.0.00.0100.09020.12
5.6.280.0030.07320.93
5.6.210.0100.06020.50
5.6.200.0130.07318.16
5.6.190.0070.08720.33
5.6.180.0200.08020.46
5.6.170.0200.08320.44
5.6.160.0030.08320.62
5.6.150.0000.04718.19
5.6.140.0070.04318.14
5.6.130.0130.05318.16
5.6.120.0130.04320.98
5.6.110.0130.07720.98
5.6.100.0100.08021.02
5.6.90.0100.08020.97
5.6.80.0030.08720.52
5.6.70.0170.05020.48
5.5.350.0130.06320.53
5.5.340.0000.08017.95
5.5.330.0030.07020.13
5.5.320.0130.08020.30
5.5.310.0300.07020.34
5.5.300.0030.08317.95
5.5.290.0000.07717.98
5.5.280.0000.04320.97
5.5.270.0070.05020.79
5.5.260.0100.04020.89
5.5.250.0170.07320.58
5.5.240.0070.03720.26
5.4.450.0100.06319.16
5.4.440.0630.06719.61
5.4.430.0970.05719.16
5.4.420.0800.05719.60
5.4.410.1070.08019.61
5.4.400.0270.05018.77
5.4.390.0230.05018.54
5.4.380.0130.06018.56
5.4.370.0200.05018.68
5.4.360.0070.06018.59
5.4.350.0230.04318.55
5.4.340.0170.05018.79
5.4.320.0130.05718.54
5.4.310.0070.06018.80
5.4.300.0170.05318.78
5.4.290.0230.04718.59
5.4.280.0170.05318.68
5.4.270.0230.04718.53
5.4.260.0170.05718.68
5.4.250.0070.06718.54
5.4.240.0100.06318.76
5.4.230.0230.04318.77
5.4.220.0270.04318.68
5.4.210.0170.05018.75
5.4.200.0100.05316.67
5.4.190.0270.04318.74
5.4.180.0130.05718.79
5.4.170.0270.04718.67
5.4.160.0230.05018.77
5.4.150.0200.05018.58
5.4.140.0270.04016.24
5.4.130.0270.04016.33
5.4.120.0130.05716.27
5.4.110.0300.05716.30
5.4.100.0230.06716.28
5.4.90.0230.04716.33
5.4.80.0130.05716.19
5.4.70.0130.06016.42
5.4.60.0170.05316.21
5.4.50.0300.04016.25
5.4.40.0270.04716.26
5.4.30.0230.04316.25
5.4.20.0170.05316.28
5.4.10.0270.04316.29
5.4.00.0170.04715.81
5.3.290.0230.07014.79
5.3.280.0100.07014.63
5.3.270.0070.06714.65
5.3.260.0170.06314.59
5.3.250.0300.05014.81
5.3.240.3470.05014.80
5.3.230.0170.06314.79
5.3.220.0330.05314.59
5.3.210.0430.06014.76
5.3.200.0430.03714.61
5.3.190.0300.06314.69
5.3.180.0570.05014.61
5.3.170.0300.07014.57
5.3.160.0330.04714.55
5.3.150.0300.05014.60
5.3.140.0430.05714.68
5.3.130.0400.06714.68
5.3.120.0430.06014.75
5.3.110.0370.07014.59
5.3.100.0330.05314.20
5.3.90.0270.05014.01
5.3.80.0330.03714.00
5.3.70.0230.05314.08
5.3.60.0430.05014.03
5.3.50.0130.06013.93
5.3.40.0230.07013.96
5.3.30.0330.05313.89
5.3.20.0300.05013.81
5.3.10.0230.04313.85
5.3.00.0300.05313.75
5.2.170.0130.05011.23
5.2.160.0100.04711.18
5.2.150.0130.04311.12
5.2.140.0130.04311.12
5.2.130.0200.03711.09
5.2.120.0230.03711.15
5.2.110.0270.03011.14
5.2.100.0130.04311.23
5.2.90.0100.04311.29
5.2.80.0200.04311.12
5.2.70.0200.04011.09
5.2.60.0200.05011.16
5.2.50.0230.04311.14
5.2.40.0170.04711.18
5.2.30.0230.03711.16
5.2.20.0130.04310.98
5.2.10.0130.03710.99
5.2.00.0230.03310.92
5.1.60.0070.04010.04
5.1.50.0130.04010.17
5.1.40.0100.05010.02
5.1.30.0200.04710.46
5.1.20.0270.03010.39
5.1.10.0130.03710.13
5.1.00.0230.03010.20
5.0.50.0170.0308.63
5.0.40.0200.0208.54
5.0.30.0100.0508.23
5.0.20.0100.0308.24
5.0.10.0230.0238.16
5.0.00.0070.0578.29
4.4.90.0100.0205.92
4.4.80.0100.0235.96
4.4.70.0130.0175.86
4.4.60.0100.0235.90
4.4.50.0030.0275.96
4.4.40.0100.0375.89
4.4.30.0130.0135.86
4.4.20.0070.0275.98
4.4.10.0000.0306.07
4.4.00.0070.0336.02
4.3.110.0130.0275.87
4.3.100.0130.0235.88
4.3.90.0130.0205.81
4.3.80.0100.0375.89
4.3.70.0130.0175.87
4.3.60.0070.0205.87
4.3.50.0100.0205.80
4.3.40.0100.0305.75
4.3.30.0100.0204.60
4.3.20.0000.0274.62
4.3.10.0000.0304.58
4.3.00.0030.0207.27

preferences:
47.99 ms | 401 KiB | 5 Q