3v4l.org

run code in 300+ PHP versions simultaneously
<?php $path = "/var/www/foo"; var_dump($pаth."/user/supplied/path"); // prints /user/supplied/path, and emits a notice // let's write a random number generator function crypto_rnd() { $rnd = openssl_random_pseudo_bytes(100); // most likely secure $today = date('c'); // extra entropy can't hurt! return hash("sha512", $r⁠n.$today); // oops, that's actually r\u2060nd, which is undefined, i.e. NULL, i.e. pwned } var_dump(crypto_rnd() === crypto_rnd()); // uh oh...

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.70.0090.00916.88
8.3.60.0040.01116.88
8.3.50.0170.00322.86
8.3.40.0070.00718.79
8.3.30.0000.01418.96
8.3.20.0070.00020.12
8.3.10.0070.00023.39
8.3.00.0030.00519.50
8.2.180.0040.01216.63
8.2.170.0100.00322.96
8.2.160.0150.00020.47
8.2.150.0090.00024.18
8.2.140.0000.00724.66
8.2.130.0000.00826.16
8.2.120.0140.00021.04
8.2.110.0080.00020.49
8.2.100.0040.00718.03
8.2.90.0070.00019.27
8.2.80.0080.00017.97
8.2.70.0040.00417.50
8.2.60.0000.00818.04
8.2.50.0040.00418.07
8.2.40.0070.00018.22
8.2.30.0000.00718.05
8.2.20.0070.00017.66
8.2.10.0040.00418.15
8.2.00.0080.00017.77
8.1.280.0140.01025.92
8.1.270.0040.00423.96
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0090.00023.92
8.1.230.0080.00318.96
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00717.35
8.1.190.0050.00317.34
8.1.180.0040.00418.10
8.1.170.0000.00918.46
8.1.160.0040.00421.89
8.1.150.0000.00718.80
8.1.140.0040.00417.27
8.1.130.0000.00717.82
8.1.120.0040.00417.43
8.1.110.0000.00717.39
8.1.100.0000.00717.38
8.1.90.0050.00217.22
8.1.80.0000.00717.37
8.1.70.0000.00717.27
8.1.60.0000.00817.61
8.1.50.0040.00417.52
8.1.40.0040.00417.37
8.1.30.0030.00617.60
8.1.20.0040.00417.66
8.1.10.0080.00017.61
8.1.00.0070.00017.41
8.0.300.0040.00418.77
8.0.290.0000.00716.63
8.0.280.0000.00718.39
8.0.270.0000.00717.16
8.0.260.0000.00617.25
8.0.250.0070.00017.02
8.0.240.0060.00316.90
8.0.230.0070.00016.94
8.0.220.0030.00316.85
8.0.210.0030.00316.87
8.0.200.0000.00716.98
8.0.190.0030.00517.04
8.0.180.0040.00416.93
8.0.170.0040.00416.87
8.0.160.0000.00716.93
8.0.150.0000.00716.86
8.0.140.0000.00716.89
8.0.130.0000.00613.44
8.0.120.0000.00816.80
8.0.110.0040.00416.99
8.0.100.0000.00816.82
8.0.90.0000.00717.06
8.0.80.0120.01216.85
8.0.70.0070.00016.89
8.0.60.0050.00316.92
8.0.50.0030.00516.98
8.0.30.0110.01417.32
8.0.20.0110.00817.40
8.0.10.0040.00417.05
8.0.00.0130.00716.94
7.4.330.0050.00015.09
7.4.320.0040.00416.55
7.4.300.0000.00716.59
7.4.290.0000.00716.63
7.4.280.0040.00416.52
7.4.270.0000.01116.48
7.4.260.0020.00516.46
7.4.250.0040.00416.55
7.4.240.0020.00616.52
7.4.230.0070.00016.66
7.4.220.0100.00716.57
7.4.210.0150.00016.67
7.4.200.0000.00716.66
7.4.160.0040.01316.68
7.4.150.0180.00317.40
7.4.140.0140.00817.86
7.4.130.0120.00516.47
7.4.120.0050.01216.53
7.4.110.0080.01216.32
7.4.100.0090.01516.68
7.4.90.0110.00716.59
7.4.80.0090.01519.39
7.4.70.0070.01316.49
7.4.60.0140.00316.45
7.4.50.0020.00216.54
7.4.40.0120.00416.52
7.4.30.0030.01216.32
7.3.330.0030.00313.38
7.3.320.0000.00513.21
7.3.310.0040.00416.34
7.3.300.0030.00316.40
7.3.290.0030.01716.32
7.3.280.0090.00716.35
7.3.270.0100.00717.40
7.3.260.0150.00316.36
7.3.250.0120.00916.40
7.3.240.0060.01516.50
7.3.230.0090.01216.39
7.3.210.0150.00916.30
7.3.200.0030.01319.39
7.3.190.0080.00816.47
7.3.180.0060.01016.54
7.3.170.0130.00316.51
7.3.160.0080.00816.55
7.2.330.0160.00816.31
7.2.320.0030.01416.68
7.2.310.0090.00816.70
7.2.300.0120.00416.34
7.2.290.0120.01116.53
7.1.70.0000.00717.39
7.1.60.0130.01019.46
7.1.50.0160.00917.28
7.1.00.0070.07022.44
7.0.200.0000.00917.09
7.0.140.0000.08021.95
7.0.80.0070.08019.83
7.0.70.0170.08020.07
7.0.60.0000.05719.95
7.0.50.0200.06720.33
7.0.40.0000.09320.02
7.0.30.0100.08320.02
7.0.20.0130.03720.12
7.0.10.0100.04720.21
7.0.00.0070.08320.12
5.6.280.0100.06720.78
5.6.230.0030.05320.70
5.6.220.0170.07320.61
5.6.210.0200.06020.70
5.6.200.0070.08321.13
5.6.190.0170.08021.21
5.6.180.0030.09321.13
5.6.170.0070.08021.04
5.6.160.0100.08021.00
5.6.150.0130.04721.10
5.6.140.0100.08021.10
5.6.130.0070.05021.03
5.6.120.0170.08021.05
5.6.110.0100.08321.21
5.6.100.0170.07320.98
5.6.90.0030.06021.15
5.6.80.0200.07020.60
5.6.70.0070.07320.48
5.6.60.0070.08020.41
5.6.50.0070.05320.48
5.6.40.0030.05720.27
5.6.30.0100.04020.37
5.6.20.0000.04020.47
5.6.10.0070.07020.46
5.6.00.0070.03720.39
5.5.370.0070.05020.41
5.5.360.0170.07020.48
5.5.350.0100.05020.32
5.5.340.0030.04720.90
5.5.330.0070.08020.77
5.5.320.0130.08020.77
5.5.310.0170.06320.91
5.5.300.0170.07020.80
5.5.290.0100.08320.77
5.5.280.0030.04720.89
5.5.270.0100.05020.88
5.5.260.0070.05720.90
5.5.250.0100.06020.62
5.5.240.0170.06320.25
5.5.230.0170.07320.19
5.5.220.0130.04020.17
5.5.210.0100.06720.17
5.5.200.0030.04720.31
5.5.190.0000.05320.12
5.5.180.0070.03720.27
5.5.160.0030.04320.24
5.5.150.0070.03720.21
5.5.140.0070.03720.30
5.5.130.0030.04020.13
5.5.120.0070.06720.22
5.5.110.0000.06320.23
5.5.100.0070.03720.05
5.5.90.0000.04020.10
5.5.80.0030.05020.15
5.5.70.0000.04320.04
5.5.60.0100.04320.12
5.5.50.0000.04020.09
5.5.40.0030.04020.09
5.5.30.0130.07019.89
5.5.20.0070.04019.93
5.5.10.0000.04020.14
5.5.00.0070.03320.00
5.4.450.0200.06719.27
5.4.440.0130.07319.26
5.4.430.0170.06719.55
5.4.420.0030.08319.55
5.4.410.0000.06719.08
5.4.400.0100.04019.04
5.4.390.0070.04019.25
5.4.380.0100.06719.15
5.4.370.0100.04719.14
5.4.360.0070.06719.23
5.4.350.0030.03719.25
5.4.340.0070.06319.11
5.4.320.0000.04319.25
5.4.310.0070.03319.11
5.4.300.0130.03018.94
5.4.290.0000.04019.03
5.4.280.0070.03719.15
5.4.270.0070.05018.90
5.4.260.0070.07019.18
5.4.250.0070.03319.13
5.4.240.0000.03719.26
5.4.230.0030.03719.24
5.4.220.0000.04019.26
5.4.210.0000.05318.91
5.4.200.0070.03718.99
5.4.190.0070.03019.04
5.4.180.0000.04719.22
5.4.170.0100.04019.14
5.4.160.0030.06319.09
5.4.150.0030.06019.21
5.4.140.0000.04016.37
5.4.130.0030.06716.40
5.4.120.0030.03316.36
5.4.110.0000.03716.39
5.4.100.0070.06016.36
5.4.90.0070.06316.50
5.4.80.0030.03716.32
5.4.70.0030.03316.47
5.4.60.0000.03716.49
5.4.50.0000.03716.53
5.4.40.0030.04016.42
5.4.30.0030.04316.27
5.4.20.0030.03316.48
5.4.10.0000.03716.30
5.4.00.0000.03715.86
5.3.290.0030.03714.69
5.3.280.0000.04314.57
5.3.270.0030.03714.59
5.3.260.0100.03314.55
5.3.250.0070.03714.54
5.3.240.0070.07014.62
5.3.230.0030.04014.59
5.3.220.0030.07714.68
5.3.210.0000.04014.59
5.3.200.0000.03714.57
5.3.190.0030.04314.63
5.3.180.0030.06014.57
5.3.170.0030.03714.53
5.3.160.0030.04314.50
5.3.150.0100.03014.69
5.3.140.0070.05014.48
5.3.130.0070.04014.57
5.3.120.0100.05014.50
5.3.110.0000.04314.63
5.3.100.0070.03314.13
5.3.90.0030.05014.09
5.3.80.0070.08014.13
5.3.70.0100.07014.17
5.3.60.0030.04014.11
5.3.50.0070.06714.07
5.3.40.0130.07013.93
5.3.30.0100.06014.01
5.3.20.0030.05013.77
5.3.10.0030.03713.75
5.3.00.0070.05313.63
5.2.170.0000.06311.05
5.2.160.0030.06311.26
5.2.150.0000.06311.20
5.2.140.0070.06311.14
5.2.130.0030.06311.19
5.2.120.0070.05710.99
5.2.110.0070.06311.22
5.2.100.0000.06711.22
5.2.90.0070.05311.18
5.2.80.0000.04011.20
5.2.70.0030.03011.20
5.2.60.0070.05011.11
5.2.50.0070.06011.13
5.2.40.0030.06311.05
5.2.30.0070.06311.02
5.2.20.0130.05711.06
5.2.10.0130.05010.87
5.2.00.0070.05710.66
5.1.60.0070.05010.27
5.1.50.0030.05010.27
5.1.40.0100.05010.27
5.1.30.0000.05010.29
5.1.20.0100.05710.27
5.1.10.0000.05710.27
5.1.00.0070.05310.27
5.0.50.0030.02710.27
5.0.40.0070.04310.27
5.0.30.0000.07310.27
5.0.20.0070.04010.27
5.0.10.0030.03310.27
5.0.00.0100.05710.27
4.4.90.0000.02310.27
4.4.80.0030.03710.27
4.4.70.0000.04010.27
4.4.60.0030.03310.27
4.4.50.0030.02010.27
4.4.40.0000.06010.27
4.4.30.0100.02710.27
4.4.20.0030.03710.27
4.4.10.0000.03010.27
4.4.00.0070.05010.27
4.3.110.0000.03310.27
4.3.100.0030.03310.27
4.3.90.0000.02710.27
4.3.80.0030.04010.27
4.3.70.0000.03710.27
4.3.60.0030.02310.27
4.3.50.0000.02010.27
4.3.40.0030.02310.27
4.3.30.0030.02310.27
4.3.20.0000.03710.27
4.3.10.0000.03010.27
4.3.00.0000.04010.27

preferences:
43.78 ms | 401 KiB | 5 Q