3v4l.org

run code in 300+ PHP versions simultaneously
<?php $number = mt_rand(); echo($number); $hashed = hash(sha256, $number); echo($hashed); ?>

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)
7.4.10.0040.01115.04
7.4.00.0110.00715.05
7.3.130.0030.01414.76
7.3.120.0060.00915.00
7.3.110.0060.01214.91
7.3.100.0090.00614.93
7.3.90.0040.01114.86
7.3.80.0000.01015.12
7.3.70.0060.00914.63
7.3.60.0070.01014.88
7.3.50.0000.01114.89
7.3.40.0030.01314.81
7.3.30.0070.01114.91
7.3.20.0000.01316.48
7.3.10.0130.00316.63
7.3.00.0030.01016.81
7.2.260.0070.01015.05
7.2.250.0090.00915.13
7.2.240.0110.00315.18
7.2.230.0030.01315.14
7.2.220.0030.00614.94
7.2.210.0070.01014.99
7.2.200.0030.01314.93
7.2.190.0040.00814.71
7.2.180.0060.00315.17
7.2.170.0090.00614.89
7.2.160.0110.00714.86
7.2.150.0140.00317.01
7.2.140.0090.00616.88
7.2.130.0030.01416.64
7.2.120.0030.00716.95
7.2.110.0040.00816.77
7.2.100.0040.00816.95
7.2.90.0040.00816.79
7.2.80.0030.00617.00
7.2.70.0140.00016.82
7.2.60.0030.01216.91
7.2.50.0040.01416.74
7.2.40.0060.00916.91
7.2.30.0060.01217.05
7.2.20.0030.00616.79
7.2.10.0080.00816.85
7.2.00.0030.01418.11
7.1.330.0030.01015.70
7.1.320.0000.00915.86
7.1.310.0040.01115.89
7.1.300.0090.00315.59
7.1.290.0040.01215.77
7.1.280.0040.00816.00
7.1.270.0040.01115.44
7.1.260.0040.00415.88
7.1.250.0070.00715.76
7.1.240.0070.00715.79
7.1.230.0000.01315.67
7.1.220.0070.00715.71
7.1.210.0100.00315.91
7.1.200.0000.00915.91
7.1.190.0000.01115.72
7.1.180.0000.01315.71
7.1.170.0070.00715.54
7.1.160.0060.00615.79
7.1.150.0100.00315.91
7.1.140.0030.01015.95
7.1.130.0090.00615.62
7.1.120.0060.01215.81
7.1.110.0070.00715.67
7.1.100.0050.00515.82
7.1.90.0030.00815.78
7.1.80.0090.00315.88
7.1.70.0040.00716.36
7.1.60.0070.01217.60
7.1.50.0070.00816.36
7.1.40.0090.00615.72
7.1.30.0100.00615.63
7.1.20.0030.01015.66
7.1.10.0030.01015.70
7.1.00.0050.04319.09
7.0.330.0030.01315.20
7.0.320.0000.01515.37
7.0.310.0070.00415.36
7.0.300.0030.00715.46
7.0.290.0000.00815.30
7.0.280.0100.00315.34
7.0.270.0030.00715.50
7.0.260.0070.00715.50
7.0.250.0080.00015.41
7.0.240.0030.00915.45
7.0.230.0000.01615.32
7.0.220.0040.00715.57
7.0.210.0070.01015.54
7.0.200.0210.00714.92
7.0.190.0030.01015.15
7.0.180.0060.00915.16
7.0.170.0070.00315.49
7.0.160.0030.01015.64
7.0.150.0080.00815.39
7.0.140.0060.04018.74
7.0.130.0090.00315.61
7.0.120.0060.00615.39
7.0.110.0040.00415.39
7.0.100.0040.00715.37
7.0.90.0000.01115.47
7.0.80.0030.00715.60
7.0.70.0000.01415.40
7.0.60.0080.03817.67
7.0.50.0050.02716.78
7.0.40.0030.05416.64
7.0.30.0130.02516.76
7.0.20.0100.02716.80
7.0.10.0070.04716.78
7.0.00.0030.04816.90
5.6.400.0040.00814.20
5.6.390.0070.01013.89
5.6.380.0080.00614.40
5.6.370.0080.00814.27
5.6.360.0120.00014.32
5.6.350.0030.00714.21
5.6.340.0000.00814.07
5.6.330.0030.01114.05
5.6.320.0090.00614.41
5.6.310.0000.01314.62
5.6.300.0040.00814.61
5.6.290.0070.00713.97
5.6.280.0070.04017.83
5.6.270.0040.00714.02
5.6.260.0070.00714.18
5.6.250.0060.01014.68
5.6.240.0060.00614.31
5.6.230.0030.01013.99
5.6.220.0060.01114.21
5.6.210.0030.04517.41
5.6.200.0100.02316.18
5.6.190.0110.02017.24
5.6.180.0220.03317.32
5.6.170.0230.04217.19
5.6.160.0030.03517.33
5.6.150.0010.05216.13
5.6.140.0050.03116.29
5.6.130.0120.02216.18
5.6.120.0070.04417.70
5.6.110.0050.04017.55
5.6.100.0050.02617.71
5.6.90.0000.02817.62
5.6.80.0050.03617.21
5.6.70.0070.00714.24
5.6.60.0070.00313.98
5.6.50.0090.00313.95
5.6.40.0110.00414.43
5.6.30.0030.00614.15
5.6.20.0050.00314.09
5.6.10.0030.01013.98
5.6.00.0090.00314.06
5.5.380.0040.00714.34
5.5.370.0040.01113.86
5.5.360.0000.01214.19
5.5.350.2130.02417.46
5.5.340.0080.02816.07
5.5.330.0080.03817.06
5.5.320.0210.03617.23
5.5.310.0170.04517.22
5.5.300.0080.02016.01
5.5.290.0090.03916.11
5.5.280.0030.04117.41
5.5.270.0080.02317.55
5.5.260.0060.02417.32
5.5.250.0100.02817.31
5.5.240.0070.03717.16
5.5.230.0040.00814.27
5.5.220.0060.00614.04
5.5.210.0060.00914.03
5.5.200.0000.01314.16
5.5.190.0080.00414.21
5.5.180.0040.00714.24
5.5.170.0030.01414.23
5.5.160.0000.01114.30
5.5.150.0040.01114.26
5.5.140.0100.00714.00
5.5.130.0100.00314.13
5.5.120.0040.01114.04
5.5.110.0080.00314.06
5.5.100.0060.00314.13
5.5.90.0060.00314.24
5.5.80.0110.00014.21
5.5.70.0100.00314.09
5.5.60.0130.00014.11
5.5.50.0040.01114.37
5.5.40.0090.00613.82
5.5.30.0070.00713.88
5.5.20.0000.01514.23
5.5.10.0030.01413.85
5.5.00.0040.01113.85
5.4.450.0410.04116.16
5.4.440.0370.03416.02
5.4.430.0500.02616.13
5.4.420.0530.03316.12
5.4.410.0400.03216.11
5.4.400.0450.02916.04
5.4.390.0310.03615.96
5.4.380.0260.02615.75
5.4.370.0100.03515.72
5.4.360.0140.03415.78
5.4.350.0210.03015.63
5.4.340.0180.03215.74
5.4.330.0000.00712.79
5.4.320.0050.02212.62
5.4.310.0060.02612.62
5.4.300.0080.02212.62
5.4.290.0020.02612.61
5.4.280.0060.02112.56
5.4.270.0030.02512.56
5.4.260.0050.02012.56
5.4.250.0060.02112.56
5.4.240.0060.02112.56
5.4.230.0080.01912.56
5.4.220.0050.02112.56
5.4.210.0020.02212.56
5.4.200.0100.02112.56
5.4.190.0070.01812.56
5.4.180.0040.02312.55
5.4.170.0050.01912.56
5.4.160.0050.02212.56
5.4.150.0070.02012.56
5.4.140.0050.02212.40
5.4.130.0070.02012.39
5.4.120.0050.02112.37
5.4.110.0100.02512.37
5.4.100.0050.02212.37
5.4.90.0060.01912.37
5.4.80.0040.02312.37
5.4.70.0020.02312.37
5.4.60.0050.02112.37
5.4.50.0050.01912.37
5.4.40.0070.02012.36
5.4.30.0020.02812.36
5.4.20.0080.01812.36
5.4.10.0070.02612.36
5.4.00.0060.02012.11
5.3.290.0080.02312.80
5.3.280.0050.02312.75
5.3.270.0050.02312.76
5.3.260.0020.02612.76
5.3.250.0080.01912.76
5.3.240.0030.02412.76
5.3.230.0060.02012.75
5.3.220.0050.02212.74
5.3.210.0090.01912.74
5.3.200.0050.02412.74
5.3.190.0090.01812.73
5.3.180.0050.02312.73
5.3.170.0070.02012.73
5.3.160.0060.02212.73
5.3.150.0070.01912.73
5.3.140.0040.02212.72
5.3.130.0060.02312.72
5.3.120.0050.02012.73
5.3.110.0050.02312.73
5.3.100.0050.02412.46
5.3.90.0020.02512.44
5.3.80.0080.01912.43
5.3.70.0070.02012.44
5.3.60.0040.02312.43
5.3.50.0050.02112.40
5.3.40.0050.02112.40
5.3.30.0020.02212.37
5.3.20.0080.01712.26
5.3.10.0050.02012.24
5.3.00.0050.02112.24
5.2.170.0040.0319.18
5.2.160.0040.0299.18
5.2.150.0050.0349.18
5.2.140.0040.0329.18
5.2.130.0050.0389.14
5.2.120.0040.0299.14
5.2.110.0060.0269.15
5.2.100.0040.0289.14
5.2.90.0030.0319.14
5.2.80.0030.0319.14
5.2.70.0060.0289.13
5.2.60.0020.0329.09
5.2.50.0050.0299.06
5.2.40.0050.0289.04
5.2.30.0060.0289.01
5.2.20.0040.0309.00
5.2.10.0050.0288.93
5.2.00.0050.0298.79
5.1.60.0030.0258.07
5.1.50.0050.0328.07
5.1.40.0060.0338.05
5.1.30.0050.0288.41
5.1.20.0060.0258.42
5.1.10.0040.0278.16
5.1.00.0030.0288.16
5.0.50.0030.0246.63
5.0.40.0040.0196.49
5.0.30.0030.0326.30
5.0.20.0040.0196.27
5.0.10.0050.0246.25
5.0.00.0030.0316.24
4.4.90.0010.0184.78
4.4.80.0030.0154.75
4.4.70.0030.0204.76
4.4.60.0020.0224.75
4.4.50.0040.0154.77
4.4.40.0010.0284.71
4.4.30.0010.0174.76
4.4.20.0040.0154.85
4.4.10.0020.0174.85
4.4.00.0030.0254.76
4.3.110.0030.0154.67
4.3.100.0020.0154.67
4.3.90.0020.0154.64
4.3.80.0020.0244.58
4.3.70.0020.0194.63
4.3.60.0030.0144.63
4.3.50.0020.0174.63
4.3.40.0020.0264.54
4.3.30.0020.0163.29
4.3.20.0030.0193.27
4.3.10.0030.0163.23
4.3.00.0000.03710.55

preferences:
37.47 ms | 400 KiB | 5 Q