3v4l.org

run code in 300+ PHP versions simultaneously
<?php $salt = microtime(); $generated_token = 'ac4638fa52ebe7f702238a98f5c7147e';//MD5('$salt' . rand(1, 100)); echo $generated_token. '<br>'; $token=0xa; if($generated_token == $token) echo 'true'; else echo 'false'; ?>

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.00.0030.01614.83
7.3.120.0070.01014.73
7.3.110.0150.00314.88
7.3.100.0090.00614.82
7.3.90.0070.00714.82
7.3.80.0060.00614.79
7.3.70.0040.00814.80
7.3.60.0070.00714.88
7.3.50.0110.00314.46
7.3.40.0030.01014.59
7.3.30.0080.00414.76
7.3.20.0080.00816.61
7.3.10.0100.00616.26
7.3.00.0070.00716.32
7.2.250.0090.00615.16
7.2.240.0030.01215.29
7.2.230.0060.00615.22
7.2.220.0130.00615.23
7.2.210.0040.01114.78
7.2.200.0030.01015.00
7.2.190.0090.00614.95
7.2.180.0030.01315.09
7.2.170.0070.00314.94
7.2.00.0030.01019.40
7.1.330.0030.01315.67
7.1.320.0060.00915.73
7.1.310.0100.00315.75
7.1.300.0080.00815.67
7.1.290.0090.00615.68
7.1.280.0070.00715.84
7.1.270.0000.01015.79
7.1.260.0030.01015.45
7.1.100.0150.01516.25
7.1.70.0040.00417.17
7.1.60.0000.01219.57
7.1.50.0070.01316.89
7.1.00.0070.07322.40
7.0.200.0070.00316.46
7.0.140.0070.03721.93
7.0.60.0300.07720.00
7.0.50.0030.04317.86
7.0.40.0100.08019.90
7.0.30.0270.07720.09
7.0.20.0270.04020.16
7.0.10.0070.04320.10
7.0.00.0170.06720.12
5.6.280.0030.07320.98
5.6.210.0070.07020.60
5.6.200.0170.04318.12
5.6.190.0130.08020.57
5.6.180.3800.04720.27
5.6.170.0170.04720.40
5.6.160.0030.08720.53
5.6.150.0030.04018.20
5.6.140.0030.08018.11
5.6.130.0100.05018.21
5.6.120.0100.06720.87
5.6.110.0270.07020.99
5.6.100.0030.05321.12
5.6.90.0000.09020.94
5.6.80.0170.08020.41
5.5.350.0200.07720.27
5.5.340.0100.07017.95
5.5.330.0070.04720.47
5.5.320.0330.05720.29
5.5.310.0200.03720.26
5.5.300.0070.08018.02
5.5.290.0070.09717.98
5.5.280.0000.04320.96
5.5.270.0030.07720.75
5.5.260.0030.04320.75
5.5.250.0000.09020.79
5.5.240.3030.03720.15
5.4.450.0500.05719.12
5.4.440.0200.06319.45
5.4.430.0170.04719.42
5.4.420.0070.07019.35
5.4.410.0170.04719.57
5.4.400.0170.04318.86
5.4.390.0230.05719.05
5.4.380.0100.05319.06
5.4.370.0170.04718.49
5.4.360.0100.05718.78
5.4.350.0300.06318.69
5.4.340.0200.06318.71
5.4.320.0230.06018.62
5.4.310.0200.05018.71
5.4.300.0230.04718.48
5.4.290.0230.04718.69
5.4.280.0100.06018.45
5.4.270.0170.05018.68
5.4.260.0170.05018.76
5.4.250.0170.05318.71
5.4.240.0230.05018.66
5.4.230.0230.04318.70
5.4.220.0230.06018.67
5.4.210.0130.05318.49
5.4.200.0130.05016.56
5.4.190.0170.06318.54
5.4.180.0070.06318.61
5.4.170.0170.05718.54
5.4.160.0170.05318.65
5.4.150.0130.05718.60
5.4.140.0100.05716.18
5.4.130.0230.06316.14
5.4.120.0070.05716.22
5.4.110.0130.05016.24
5.4.100.0200.04716.21
5.4.90.0170.04716.26
5.4.80.0130.05016.15
5.4.70.0100.05716.13
5.4.60.0170.06016.13
5.4.50.0200.04316.28
5.4.40.0170.05316.21
5.4.30.0100.05316.13
5.4.20.0230.04316.16
5.4.10.0230.04016.11
5.4.00.0200.04315.54
5.3.290.0170.05314.63
5.3.280.0170.05014.68
5.3.270.0100.06014.67
5.3.260.0130.05714.69
5.3.250.0130.05014.59
5.3.240.0130.06014.56
5.3.230.0100.05714.66
5.3.220.0170.05014.58
5.3.210.0200.04714.65
5.3.200.0030.06314.49
5.3.190.0130.05314.54
5.3.180.0130.05714.67
5.3.170.0070.06014.46
5.3.160.0300.04314.45
5.3.150.0070.06014.54
5.3.140.0030.06314.50
5.3.130.0200.04714.46
5.3.120.0100.06314.44
5.3.110.0100.06014.58
5.3.100.0230.04714.12
5.3.90.0130.05014.11
5.3.80.0130.05013.96
5.3.70.0170.05314.11
5.3.60.0170.04713.98
5.3.50.0130.05314.04
5.3.40.0130.05013.89
5.3.30.0100.05013.88
5.3.20.0070.05713.67
5.3.10.0170.04313.63
5.3.00.0270.03713.54
5.2.170.0100.05711.10
5.2.160.0070.04311.30
5.2.150.0100.04311.07
5.2.140.0130.04011.29
5.2.130.0100.04011.15
5.2.120.0170.03311.05
5.2.110.0100.04011.15
5.2.100.0170.05011.25
5.2.90.0170.03311.14
5.2.80.0130.04311.23
5.2.70.0000.01011.04
5.2.60.0170.03711.02
5.2.50.0100.04311.02
5.2.40.0070.05010.92
5.2.30.0070.04310.89
5.2.20.0030.04310.93
5.2.10.0070.04011.01
5.2.00.0170.03310.67
5.1.60.0130.03010.00
5.1.50.0270.0239.98
5.1.40.0170.0279.99
5.1.30.0130.03310.38
5.1.20.0030.04310.46
5.1.10.0000.04310.04
5.1.00.0070.04010.18
5.0.50.0130.0378.57
5.0.40.0030.0308.44
5.0.30.0030.0478.27
5.0.20.0030.0338.16
5.0.10.0100.0238.34
5.0.00.0100.0378.19
4.4.90.0030.0235.91
4.4.80.0000.0275.87
4.4.70.0030.0235.84
4.4.60.0030.0235.91
4.4.50.0000.0275.88
4.4.40.0030.0375.86
4.4.30.0000.0275.86
4.4.20.0100.0175.93
4.4.10.0070.0205.98
4.4.00.0070.0335.93
4.3.110.0100.0175.80
4.3.100.0030.0235.87
4.3.90.0000.0235.83
4.3.80.0130.0405.82
4.3.70.0070.0275.77
4.3.60.0100.0135.78
4.3.50.0070.0205.79
4.3.40.0030.0335.78
4.3.30.0100.0134.66
4.3.20.0030.0234.53
4.3.10.0000.0274.52
4.3.00.0100.0206.99

preferences:
50.84 ms | 401 KiB | 5 Q