3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('FILEPATH', '/foo/'); $upload = array( 'path' => FILEPATH . 'assets/uploads/', // Get Parse error: syntax error, unexpected '.', expecting ')' 'allowed_types' => 'gif|jpg|png' );

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.1.70.0000.00817.40
8.1.60.0080.00017.58
8.1.50.0050.00317.56
8.1.40.0040.00417.51
8.1.30.0080.00017.51
8.1.20.0040.00417.57
8.1.10.0000.00817.39
8.1.00.0050.00217.42
8.0.200.0040.00416.93
8.0.190.0070.00316.85
8.0.180.0030.00316.82
8.0.170.0080.00016.89
8.0.160.0030.00316.90
8.0.150.0000.00716.73
8.0.140.0000.00716.79
8.0.130.0030.00313.31
8.0.120.0000.00816.81
8.0.110.0040.00416.74
8.0.100.0000.00716.84
8.0.90.0040.00416.80
8.0.80.0120.00316.91
8.0.70.0000.00716.90
8.0.60.0040.00416.89
8.0.50.0000.00716.77
8.0.30.0070.01217.27
8.0.20.0120.00917.40
8.0.10.0040.00416.88
8.0.00.0040.01316.70
7.4.300.0000.00716.46
7.4.290.0000.00716.45
7.4.280.0080.00016.63
7.4.270.0050.00216.64
7.4.260.0030.00316.46
7.4.250.0000.00716.50
7.4.240.0020.00616.50
7.4.230.0030.00316.33
7.4.220.0130.00716.52
7.4.210.0110.00416.54
7.4.200.0030.00516.41
7.4.160.0100.01316.42
7.4.150.0090.00617.40
7.4.140.0070.01217.86
7.4.130.0080.00816.52
7.4.120.0140.00516.59
7.4.110.0200.00316.43
7.4.100.0040.01216.50
7.4.90.0070.01016.38
7.4.80.0100.01419.39
7.4.70.0160.00616.47
7.4.60.0110.00816.49
7.4.50.0000.00816.45
7.4.40.0100.00816.52
7.4.30.0070.01016.64
7.4.00.0030.00615.09
7.3.330.0060.00013.07
7.3.320.0050.00013.09
7.3.310.0030.00316.17
7.3.300.0000.00716.18
7.3.290.0030.01216.16
7.3.280.0100.00916.18
7.3.270.0130.00317.40
7.3.260.0040.01316.52
7.3.250.0090.01116.34
7.3.240.0130.00916.16
7.3.230.0130.00316.46
7.3.210.0070.01016.15
7.3.200.0070.01019.39
7.3.190.0070.01116.53
7.3.180.0110.00416.28
7.3.170.0080.00816.48
7.3.160.0060.00916.39
7.3.120.0000.01714.51
7.2.330.0070.01016.71
7.2.320.0030.01816.46
7.2.310.0020.01916.29
7.2.300.0100.01016.64
7.2.290.0120.00316.48
7.2.60.0080.00816.54
7.1.200.0030.01015.81
7.1.100.0060.00617.89
7.1.70.0000.00817.09
7.1.60.0070.01819.70
7.1.50.0070.01116.80
7.1.00.0070.07022.37
7.0.200.0860.01014.89
7.0.140.0100.07022.02
7.0.120.0100.05321.96
7.0.110.0000.08022.01
7.0.100.0030.07322.13
7.0.90.0030.03722.02
7.0.80.0030.07022.10
7.0.70.0030.04322.14
7.0.60.0000.05322.01
7.0.50.0070.04022.04
7.0.40.0030.03322.07
7.0.30.0030.04022.05
7.0.20.0070.02722.14
7.0.10.0030.03021.97
7.0.00.0030.03322.20
5.6.260.0030.05720.88
5.6.250.0070.06320.86
5.6.240.0030.07020.98
5.6.230.0000.06320.79
5.6.220.0030.04321.00
5.6.210.0000.04320.95
5.6.200.0000.06020.83
5.6.190.0070.03020.82
5.6.180.0070.03321.08
5.6.170.0030.03020.74
5.6.160.0030.03021.08
5.6.150.0070.04321.00
5.6.140.0100.02721.00
5.6.130.0000.03721.05
5.6.120.0000.04320.84
5.6.110.0030.04720.81
5.6.100.0030.07721.04
5.6.90.0070.07021.01
5.6.80.0070.06020.17
5.6.70.0030.07020.29
5.6.60.0070.07020.30
5.6.50.0030.06020.30
5.6.40.0030.06720.36
5.6.30.0030.07320.41
5.6.20.0000.07720.18
5.6.10.0100.05720.27
5.6.00.0070.06720.21
5.5.380.0030.03717.40
5.5.370.0000.07017.51
5.5.360.0070.04317.51
5.5.350.0070.04017.61
5.5.340.0030.05717.84
5.5.330.0000.03318.03
5.5.320.0000.04018.17
5.5.310.0070.02717.98
5.5.300.0030.04017.99
5.5.290.0000.04017.84
5.5.280.0030.06317.76
5.5.270.0000.04017.86
5.5.260.0070.07317.84
5.5.250.0100.06717.66
5.5.240.0030.06717.23
5.5.230.0070.06717.13
5.5.220.0000.07017.27
5.5.210.0030.06717.24
5.5.200.0000.07017.48
5.5.190.0000.07317.33
5.5.180.0030.06317.21
5.5.160.0030.06717.62
5.5.150.0000.05317.14
5.5.140.0030.04317.21
5.5.130.0000.07017.35
5.5.120.0000.06717.44
5.5.110.0030.07017.35
5.5.100.0030.07017.10
5.5.90.0000.05017.37
5.5.80.0000.05317.41
5.5.70.0070.05017.34
5.5.60.0030.05017.33
5.5.50.0030.06717.09
5.5.40.0000.07017.40
5.5.30.0070.06317.23
5.5.20.0000.07017.36
5.5.10.0030.07017.40
5.5.00.0030.05017.08
5.4.450.0000.04719.42
5.4.440.0000.04019.57
5.4.430.0030.05019.32
5.4.420.0100.06019.25
5.4.410.0030.07019.43
5.4.400.0030.06719.04
5.4.390.0000.07319.00
5.4.380.0000.07018.90
5.4.370.0070.06019.18
5.4.360.0030.06318.95
5.4.350.0070.06318.98
5.4.340.0030.07019.24
5.4.320.0030.06018.98
5.4.310.0030.06719.11
5.4.300.0000.05318.92
5.4.290.0030.06719.24
5.4.280.0000.07319.18
5.4.270.0100.06019.23
5.4.260.0100.06319.11
5.4.250.0000.06319.02
5.4.240.0000.05319.23
5.4.230.0000.05318.92
5.4.220.0030.05019.07
5.4.210.0000.07018.93
5.4.200.0070.06318.93
5.4.190.0030.06719.06
5.4.180.0100.06019.08
5.4.170.0070.06318.93
5.4.160.0030.06719.09
5.4.150.0030.07019.21
5.4.140.0000.07016.16
5.4.130.0100.05716.52
5.4.120.0070.05716.25
5.4.110.0030.06716.13
5.4.100.0000.06016.28
5.4.90.0000.06716.22
5.4.80.0030.05316.41
5.4.70.0030.06016.38
5.4.60.0070.06016.45
5.4.50.0000.06716.49
5.4.40.0000.05716.38
5.4.30.0030.06016.43
5.4.20.0030.06316.18
5.4.10.0030.06716.36
5.4.00.0070.05715.60
5.3.290.0000.07314.51
5.3.280.0070.04714.59
5.3.270.0030.06714.50
5.3.260.0000.07314.67
5.3.250.0070.06314.46
5.3.240.0030.06314.66
5.3.230.0030.06314.48
5.3.220.0000.06714.57
5.3.210.0070.06314.50
5.3.200.0030.05314.35
5.3.190.0000.07014.42
5.3.180.0070.06014.59
5.3.170.0000.06314.43
5.3.160.0070.06314.66
5.3.150.0070.06314.45
5.3.140.0000.06014.65
5.3.130.0070.07014.45
5.3.120.0030.06714.43
5.3.110.0000.07314.61
5.3.100.0000.05713.90
5.3.90.0070.05014.12
5.3.80.0000.06713.95
5.3.70.0030.06313.90
5.3.60.0000.05014.09
5.3.50.0000.06313.84
5.3.40.0030.05713.84
5.3.30.0070.06013.75
5.3.20.0000.06713.55
5.3.10.0000.05313.67
5.3.00.0000.05713.73
5.2.170.0030.05710.93
5.2.160.0000.05711.08
5.2.150.0000.05711.30
5.2.140.0000.05711.13
5.2.130.0000.04311.09
5.2.120.0030.04711.02
5.2.110.0030.05011.03
5.2.100.0000.03711.00
5.2.90.0000.03711.02
5.2.80.0030.05311.16
5.2.70.0100.04311.00
5.2.60.0000.04310.83
5.2.50.0000.05710.80
5.2.40.0000.05710.92
5.2.30.0000.05711.04
5.2.20.0130.04711.03
5.2.10.0000.04710.79
5.2.00.0000.05310.61
5.1.60.0000.04710.28
5.1.50.0000.04710.28
5.1.40.0000.03010.28
5.1.30.0000.02310.28
5.1.20.0000.02010.47
5.1.10.0030.01710.28
5.1.00.0030.01710.28
5.0.50.0000.02010.28
5.0.40.0000.02310.28
5.0.30.0000.05310.28
5.0.20.0030.03310.28
5.0.10.0000.03710.28
5.0.00.0000.04710.28
4.4.90.0000.03010.28
4.4.80.0000.02710.28
4.4.70.0030.02710.28
4.4.60.0030.02710.28
4.4.50.0000.02710.28
4.4.40.0000.04710.28
4.4.30.0030.02310.28
4.4.20.0000.01310.28
4.4.10.0000.01310.28
4.4.00.0000.02710.28
4.3.110.0000.02710.28
4.3.100.0030.02710.28
4.3.90.0000.02310.28
4.3.80.0030.04010.28
4.3.70.0000.02710.28
4.3.60.0000.03010.28
4.3.50.0000.02710.28
4.3.40.0030.04310.28
4.3.30.0000.02310.28
4.3.20.0030.02310.28
4.3.10.0070.01010.28
4.3.00.0030.02010.28

preferences:
12.74 ms | 406 KiB | 5 Q