3v4l.org

run code in 300+ PHP versions simultaneously
<?php /*function add($a, $b){ return $a + $b; } echo add(2,3); function subtract ($a, $b){ return $a - $b; } echo subtract(5,4); function concatenate($a, $b){ return $a . $b; } echo concatenate('Hello', 'Wie');*/ //$arr = ['test', 'test2']; //print_r($arr[0]); function addToArray($arg1, $arg2){ $arr2 = []; $arr2[] = $arg1; $arr2[] = $arg2; print_r($arr2); } addToArray('Hallo','Yoooo'); var_dump($existiertnicht); $existiertnicht[] = 'Test'; print_r($existiertnicht); echo $gibtsnicht + 9;

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.0060.00916.63
8.3.50.0100.00422.00
8.3.40.0070.00718.67
8.3.30.0070.00718.82
8.3.20.0040.00420.34
8.3.10.0040.00421.73
8.3.00.0000.00819.38
8.2.180.0100.01016.75
8.2.170.0120.00322.96
8.2.160.0090.00620.46
8.2.150.0040.00424.18
8.2.140.0090.00024.66
8.2.130.0070.00026.16
8.2.120.0030.00519.89
8.2.110.0100.00021.01
8.2.100.0040.00817.73
8.2.90.0040.00419.07
8.2.80.0080.00017.97
8.2.70.0050.00517.63
8.2.60.0040.00417.93
8.2.50.0000.00818.07
8.2.40.0040.00419.88
8.2.30.0040.00418.06
8.2.20.0030.00617.81
8.2.10.0080.00017.88
8.2.00.0070.00017.63
8.1.280.0040.01525.92
8.1.270.0040.00420.73
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00619.09
8.1.230.0090.00319.55
8.1.220.0090.00017.75
8.1.210.0030.00618.77
8.1.200.0100.00017.12
8.1.190.0040.00417.10
8.1.180.0050.00318.10
8.1.170.0030.00620.38
8.1.160.0040.00421.91
8.1.150.0050.00318.82
8.1.140.0040.00417.36
8.1.130.0030.00317.74
8.1.120.0000.01017.41
8.1.110.0040.00417.40
8.1.100.0030.00617.39
8.1.90.0040.00417.42
8.1.80.0030.00317.40
8.1.70.0000.00717.39
8.1.60.0000.00817.60
8.1.50.0040.00417.54
8.1.40.0030.00517.42
8.1.30.0000.00817.51
8.1.20.0050.00317.55
8.1.10.0080.00017.52
8.1.00.0080.00417.43
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0000.00718.43
8.0.270.0040.00417.20
8.0.260.0060.00017.37
8.0.250.0050.00216.94
8.0.240.0000.00616.98
8.0.230.0000.00717.02
8.0.220.0000.00716.76
8.0.210.0000.00716.88
8.0.200.0040.00716.94
8.0.190.0000.00716.85
8.0.180.0020.00516.95
8.0.170.0020.00516.96
8.0.160.0000.00716.87
8.0.150.0000.00716.86
8.0.140.0040.00416.74
8.0.130.0050.00013.41
8.0.120.0050.00316.94
8.0.110.0000.00816.96
8.0.100.0070.00016.78
8.0.90.0000.00716.86
8.0.80.0100.01316.86
8.0.70.0070.00016.72
8.0.60.0000.00716.80
8.0.50.0000.00716.83
8.0.30.0110.01116.96
8.0.20.0140.00817.40
8.0.10.0030.00417.01
8.0.00.0090.01016.87
7.4.330.0030.00315.09
7.4.320.0030.00316.31
7.4.300.0030.00316.61
7.4.290.0000.00716.66
7.4.280.0040.00416.55
7.4.270.0040.00416.62
7.4.260.0030.00316.44
7.4.250.0040.00416.46
7.4.240.0020.00616.57
7.4.230.0000.00716.31
7.4.220.0110.00716.57
7.4.210.0060.00916.63
7.4.200.0030.00516.58
7.4.160.0080.00816.56
7.4.150.0080.01017.40
7.4.140.0120.00917.86
7.4.130.0130.00716.53
7.4.120.0080.00916.68
7.4.110.0120.01216.66
7.4.100.0080.00816.57
7.4.90.0170.00016.43
7.4.80.0030.01619.39
7.4.70.0030.01316.50
7.4.60.0030.01316.65
7.4.50.0030.00616.54
7.4.40.0060.01016.42
7.4.30.0150.00916.62
7.4.00.0040.01115.08
7.3.330.0030.00313.22
7.3.320.0120.00013.17
7.3.310.0000.00716.38
7.3.300.0030.00316.35
7.3.290.0070.00616.36
7.3.280.0150.00416.38
7.3.270.0090.00917.40
7.3.260.0090.00916.55
7.3.250.0150.00516.41
7.3.240.0090.00916.58
7.3.230.0100.01316.63
7.3.210.0100.00916.66
7.3.200.0180.00319.39
7.3.190.0070.01316.57
7.3.180.0100.00716.47
7.3.170.0130.00616.39
7.3.160.0170.00016.42
7.2.330.0060.01216.60
7.2.320.0110.00616.75
7.2.310.0080.00816.50
7.2.300.0130.00316.56
7.2.290.0090.01216.49
7.2.00.0040.00818.81
7.1.100.0000.01018.30
7.1.70.0000.00817.07
7.1.60.0100.01319.50
7.1.50.0080.01516.63
7.1.00.0100.06722.50
7.0.200.0040.00716.46
7.0.140.0030.07022.09
7.0.60.0100.04719.87
7.0.50.0000.05717.98
7.0.40.0070.05719.98
7.0.30.0500.07020.09
7.0.20.0230.08320.26
7.0.10.0130.05720.36
7.0.00.0130.08320.16
5.6.280.0130.06020.86
5.6.210.0030.04020.71
5.6.200.0170.08018.22
5.6.190.0130.07720.57
5.6.180.0200.08020.49
5.6.170.0370.07720.49
5.6.160.0100.08320.44
5.6.150.0100.08018.22
5.6.140.0030.08718.12
5.6.130.0070.03718.19
5.6.120.0070.05721.12
5.6.110.0130.08321.08
5.6.100.0100.05720.98
5.6.90.0070.08021.00
5.6.80.0070.08720.39
5.6.70.0170.04020.39
5.5.350.0270.07320.41
5.5.340.0070.08017.99
5.5.330.0130.08020.28
5.5.320.0000.05020.30
5.5.310.0230.04320.30
5.5.300.0070.04718.03
5.5.290.0170.02717.97
5.5.280.0030.08320.80
5.5.270.0130.05020.73
5.5.260.0100.06320.63
5.5.250.0000.05320.62
5.5.240.0000.06720.26
5.4.450.0700.07719.54
5.4.440.1030.07019.61
5.4.430.0570.07019.28
5.4.420.0730.05019.39
5.4.410.0100.05718.94
5.4.400.0500.06318.85
5.4.390.0330.04718.70
5.4.380.0130.06318.44
5.4.370.0200.05018.75
5.4.360.0230.05018.70
5.4.350.0130.06018.72
5.4.340.0200.05018.77
5.4.320.0200.05318.68
5.4.310.0170.05718.70
5.4.300.0170.05718.59
5.4.290.0270.05318.78
5.4.280.0130.06018.58
5.4.270.0200.05718.54
5.4.260.0200.05318.80
5.4.250.0300.04718.54
5.4.240.0170.05718.76
5.4.230.0170.05718.54
5.4.220.0230.05018.59
5.4.210.0200.05018.79
5.4.200.0070.06016.53
5.4.190.0170.05718.59
5.4.180.0270.04718.53
5.4.170.0270.05018.57
5.4.160.0200.05018.66
5.4.150.0200.05018.75
5.4.140.0330.03716.21
5.4.130.0200.05016.26
5.4.120.0270.04716.25
5.4.110.0270.04016.26
5.4.100.0200.05016.29
5.4.90.0130.05716.24
5.4.80.0230.04316.29
5.4.70.0100.06716.26
5.4.60.0130.05316.24
5.4.50.0170.04716.38
5.4.40.0270.04716.26
5.4.30.0170.05316.20
5.4.20.0170.05316.39
5.4.10.0230.04716.13
5.4.00.0170.05315.68
5.3.290.0230.05014.87
5.3.280.0200.05014.73
5.3.270.0170.05714.81
5.3.260.0200.05014.73
5.3.250.0200.05014.59
5.3.240.0170.05314.76
5.3.230.0130.05714.75
5.3.220.0100.06014.59
5.3.210.0300.05314.70
5.3.200.0200.05014.61
5.3.190.0130.06314.77
5.3.180.0130.05714.74
5.3.170.0370.05714.58
5.3.160.0230.04714.70
5.3.150.0130.06014.60
5.3.140.0230.04714.73
5.3.130.0200.05014.66
5.3.120.0130.05714.60
5.3.110.0130.05714.59
5.3.100.0000.06714.25
5.3.90.0170.04714.23
5.3.80.0100.05314.08
5.3.70.0100.05714.02
5.3.60.0170.05714.12
5.3.50.0230.05014.13
5.3.40.0130.05714.00
5.3.30.0170.05013.94
5.3.20.0100.05713.68
5.3.10.0230.04313.67
5.3.00.0130.06013.68
5.2.170.0200.04011.16
5.2.160.0100.04711.24
5.2.150.0100.04311.26
5.2.140.0230.03311.24
5.2.130.0270.03311.12
5.2.120.0230.03711.08
5.2.110.0230.03711.11
5.2.100.0170.03711.12
5.2.90.0200.03311.20
5.2.80.0170.04311.11
5.2.70.0100.05311.13
5.2.60.0230.04711.02
5.2.50.0300.04011.14
5.2.40.0070.04311.00
5.2.30.0230.03011.04
5.2.20.0200.03010.94
5.2.10.0130.03710.97
5.2.00.0100.05310.71
5.1.60.0200.0409.97
5.1.50.0100.04010.01
5.1.40.0100.0339.99
5.1.30.0130.04010.54
5.1.20.0130.03310.48
5.1.10.0070.04310.23
5.1.00.0030.04010.11
5.0.50.0070.0308.56
5.0.40.0070.0278.51
5.0.30.0130.0378.29
5.0.20.0130.0238.22
5.0.10.0100.0338.23
5.0.00.0130.0508.29
4.4.90.0030.0235.89
4.4.80.0070.0205.91
4.4.70.0030.0275.89
4.4.60.0070.0206.00
4.4.50.0100.0175.89
4.4.40.0070.0375.95
4.4.30.0070.0235.92
4.4.20.0070.0236.01
4.4.10.0070.0206.07
4.4.00.0070.0375.93
4.3.110.0030.0305.82
4.3.100.0130.0175.85
4.3.90.0030.0235.79
4.3.80.0070.0335.80
4.3.70.0030.0235.79
4.3.60.0070.0205.79
4.3.50.0070.0205.81
4.3.40.0100.0305.78
4.3.30.0030.0234.56
4.3.20.0070.0204.52
4.3.10.0030.0234.52
4.3.00.0300.0277.28

preferences:
44.76 ms | 401 KiB | 5 Q