3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(0^1,1^0); /* $pw = 'test123'; $pwInDb = sha1(sha1($pw)); $scramble = mt_rand(); //token $stage1_hash = sha1($pw); $token = sha1($scramble . sha1($stage1_hash)) ^ $stage1_hash; $stage1_hash = $token ^ sha1($scramble . $pwInDb); echo '<pre>'; echo sha1($stage1_hash); echo "\n"; echo $pwInDb; */

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.0040.01116.63
8.3.60.0170.00316.63
8.3.50.0090.00816.48
8.3.40.0110.00718.57
8.3.30.0140.00018.77
8.3.20.0050.00318.48
8.3.10.0060.00320.46
8.3.00.0000.00819.25
8.2.180.0100.00718.04
8.2.170.0070.00722.96
8.2.160.0110.00321.02
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0070.00026.16
8.2.120.0040.00419.52
8.2.110.0060.00320.76
8.2.100.0040.00717.59
8.2.90.0000.00818.92
8.2.80.0080.00017.80
8.2.70.0040.00417.50
8.2.60.0000.00817.91
8.2.50.0070.00318.07
8.2.40.0030.00518.09
8.2.30.0000.00717.82
8.2.20.0070.00017.50
8.2.10.0070.00017.47
8.2.00.0030.00717.59
8.1.280.0040.01425.92
8.1.270.0040.00424.66
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0070.00420.43
8.1.230.0110.00020.96
8.1.220.0080.00017.74
8.1.210.0080.00018.85
8.1.200.0090.00017.35
8.1.190.0000.00817.39
8.1.180.0050.00318.10
8.1.170.0050.00318.76
8.1.160.0050.00318.63
8.1.150.0040.00418.54
8.1.140.0070.00017.31
8.1.130.0030.00317.68
8.1.120.0040.00417.31
8.1.110.0070.00017.14
8.1.100.0000.00717.24
8.1.90.0040.00417.29
8.1.80.0070.00017.22
8.1.70.0080.00017.25
8.1.60.0030.00517.50
8.1.50.0000.00717.23
8.1.40.0040.00417.34
8.1.30.0000.00817.37
8.1.20.0060.00617.42
8.1.10.0060.00317.35
8.1.00.0040.00417.20
8.0.300.0050.00319.82
8.0.290.0080.00016.63
8.0.280.0030.00318.31
8.0.270.0030.00317.04
8.0.260.0050.00216.64
8.0.250.0040.00416.79
8.0.240.0090.00016.85
8.0.230.0000.00716.78
8.0.220.0070.00016.66
8.0.210.0040.00416.67
8.0.200.0000.00716.77
8.0.190.0040.00416.75
8.0.180.0040.00416.67
8.0.170.0040.00416.73
8.0.160.0030.00316.82
8.0.150.0040.00416.77
8.0.140.0040.00416.73
8.0.130.0050.00013.28
8.0.120.0000.00716.72
8.0.110.0060.00316.71
8.0.100.0000.00716.76
8.0.90.0040.00416.63
8.0.80.0130.00316.80
8.0.70.0000.00716.80
8.0.60.0040.00416.81
8.0.50.0050.00216.69
8.0.30.0100.01017.01
8.0.20.0120.01116.89
8.0.10.0050.00216.89
8.0.00.0130.00716.54
7.4.330.0050.00012.80
7.4.320.0030.00316.36
7.4.300.0000.00616.36
7.4.290.0030.00316.50
7.4.280.0030.00416.47
7.4.270.0000.00716.35
7.4.260.0060.00013.10
7.4.250.0070.00016.34
7.4.240.0040.00416.35
7.4.230.0000.00716.30
7.4.220.0100.01416.36
7.4.210.0090.00816.42
7.4.200.0040.00416.30
7.4.190.0040.00416.50
7.4.160.0100.00616.24
7.4.150.0000.01816.16
7.4.140.0070.01016.16
7.4.130.0040.01216.26
7.4.120.0110.00616.34
7.4.110.0030.01716.32
7.4.100.0140.00316.25
7.4.90.0130.00316.41
7.4.80.0080.00916.49
7.4.70.0060.00916.40
7.4.60.0040.01816.41
7.4.50.0040.00416.36
7.4.40.0100.00316.25
7.4.30.0140.00616.53
7.4.00.0100.00315.02
7.3.330.0040.00412.92
7.3.320.0000.00612.81
7.3.310.0030.00316.09
7.3.300.0030.00316.03
7.3.290.0070.00716.09
7.3.280.0090.00816.08
7.3.270.0070.01016.30
7.3.260.0110.00716.30
7.3.250.0190.00316.24
7.3.240.0090.00616.43
7.3.230.0110.01116.20
7.3.210.0140.00316.00
7.3.200.0100.00719.39
7.3.190.0140.00316.26
7.3.180.0070.01016.37
7.3.170.0160.00716.23
7.3.160.0090.01216.39
7.3.120.0110.00714.45
7.2.330.0090.01216.49
7.2.320.0090.00916.44
7.2.310.0120.00616.54
7.2.300.0130.00316.15
7.2.290.0080.00816.30
7.2.60.0070.00316.84
7.1.200.0090.00315.77
7.1.100.0030.00918.09
7.1.70.0000.00816.90
7.1.60.0090.00319.40
7.1.50.0070.01416.54
7.1.00.0030.07722.54
7.0.200.2350.00714.71
7.0.140.0000.07322.00
7.0.120.0070.07021.95
7.0.60.0230.06719.85
7.0.50.0000.04317.82
7.0.40.0070.07020.30
7.0.30.0530.07320.17
7.0.20.0230.05020.30
7.0.10.0230.04719.99
7.0.00.0030.07320.11
5.6.280.0070.07021.03
5.6.210.0100.07720.59
5.6.200.0070.05718.15
5.6.190.0030.04720.37
5.6.180.0300.04020.61
5.6.170.0200.06020.54
5.6.160.0070.06720.38
5.6.150.0100.07718.16
5.6.140.0070.04318.11
5.6.130.0100.04718.18
5.6.120.0100.03721.01
5.6.110.0130.07320.88
5.6.100.0100.06721.10
5.6.90.0030.04020.98
5.6.80.0030.04020.39
5.5.350.0270.05020.43
5.5.340.0030.08717.89
5.5.330.0030.04320.40
5.5.320.0170.05320.28
5.5.310.0070.04720.26
5.5.300.0100.05017.91
5.5.290.0100.08018.01
5.5.280.0130.06320.68
5.5.270.0170.05320.74
5.5.260.0030.04020.75
5.5.250.0130.07720.54
5.5.240.0030.08320.02
5.4.450.0270.07019.13
5.4.440.0200.04719.38
5.4.430.0170.05019.13
5.4.420.0230.06019.57
5.4.410.0270.02719.07
5.4.400.0200.07319.10
5.4.390.0170.05719.13
5.4.380.0170.04019.09
5.4.370.0100.04019.09
5.4.360.0170.06019.24
5.4.350.0200.03719.08
5.4.340.0300.03319.09
5.4.320.0370.06019.07
5.4.310.0270.07019.13
5.4.300.0230.06719.07
5.4.290.0170.06719.08
5.4.280.0230.09319.05
5.4.270.0270.06319.13
5.4.260.0200.07719.13
5.4.250.0200.03319.14
5.4.240.0230.04319.16
5.4.230.0130.04019.06
5.4.220.0100.06018.91
5.4.210.0230.06019.05
5.4.200.0200.03719.07
5.4.190.0230.03319.21
5.4.180.0300.05718.91
5.4.170.0200.04719.22
5.4.160.0130.06019.04
5.4.150.0230.06319.07
5.4.140.0230.06716.26
5.4.130.0200.03316.16
5.4.120.0170.04716.24
5.4.110.0200.04716.40
5.4.100.0270.04016.45
5.4.90.0270.06016.42
5.4.80.0030.07016.43
5.4.70.0100.05716.32
5.4.60.0100.05316.31
5.4.50.0230.05316.37
5.4.40.0170.04716.41
5.4.30.0200.06716.41
5.4.20.0200.05316.35
5.4.10.0230.07316.15
5.4.00.0200.04015.73
5.3.290.0170.08014.61
5.3.280.0330.03314.63
5.3.270.0200.04714.70
5.3.260.0230.07014.44
5.3.250.0200.03714.54
5.3.240.0170.08014.57
5.3.230.0230.06314.54
5.3.220.0170.08014.44
5.3.210.0270.05714.47
5.3.200.0270.05714.66
5.3.190.0230.07014.43
5.3.180.0230.06314.51
5.3.170.0230.07014.51
5.3.160.0270.03714.46
5.3.150.0100.04314.61
5.3.140.0230.05314.40
5.3.130.0200.04714.43
5.3.120.0170.07014.63
5.3.110.0030.05014.59
5.3.100.0000.04713.98
5.3.90.1470.03713.89
5.3.80.1830.03313.86
5.3.70.2070.03713.96
5.3.60.2100.03713.79
5.3.50.1830.04313.88
5.3.40.2000.03713.79
5.3.30.1830.03013.78
5.3.20.1570.03313.64
5.3.10.0030.04313.60
5.3.00.0030.03713.47
5.2.170.0030.02710.99
5.2.160.1030.04011.00
5.2.150.1730.03311.15
5.2.140.1530.03311.21
5.2.130.0070.02710.98
5.2.120.0070.02311.04
5.2.110.0000.03710.96
5.2.100.1600.02310.96
5.2.90.1600.02710.89
5.2.80.1570.03010.94
5.2.70.1600.02710.95
5.2.60.1500.03010.98
5.2.50.1570.02710.92
5.2.40.1230.02710.93
5.2.30.1200.03010.83
5.2.20.1300.03310.89
5.2.10.1570.02710.72
5.2.00.1370.03710.87
5.1.60.1500.0309.91
5.1.50.1470.0309.88
5.1.40.0330.0239.98
5.1.30.0000.02710.33
5.1.20.0000.02710.32
5.1.10.0030.03010.14
5.1.00.0770.02710.03
5.0.50.0700.0138.53
5.0.40.0630.0208.38
5.0.30.0300.0538.11
5.0.20.0000.0208.18
5.0.10.0000.0208.14
5.0.00.0000.0308.38
4.4.90.0000.0177.78
4.4.80.0030.0177.78
4.4.70.0030.0137.78
4.4.60.0030.0137.78
4.4.50.0170.0137.78
4.4.40.0700.0237.78
4.4.30.0600.0177.78
4.4.20.0600.0237.78
4.4.10.0630.0137.78
4.4.00.0800.0277.78
4.3.110.0800.0277.78
4.3.100.0600.0177.78
4.3.90.0630.0177.78
4.3.80.0800.0237.78
4.3.70.0600.0177.78
4.3.60.0700.0107.78
4.3.50.0800.0137.78
4.3.40.0670.0237.78
4.3.30.0370.0277.78
4.3.20.0430.0307.78
4.3.10.0200.0177.78
4.3.00.0000.0177.78

preferences:
62.04 ms | 401 KiB | 5 Q