3v4l.org

run code in 300+ PHP versions simultaneously
<?php $salt = microtime(); $generated_token = '9c4638fa52ebe7f702238a98f5c7147e';//MD5('$salt' . rand(1, 100)); echo $generated_token. '<br>'; $token=0x9; 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.0070.00714.99
7.3.120.0030.01514.76
7.3.110.0040.01414.86
7.3.100.0060.01014.86
7.3.90.0030.01514.54
7.3.80.0070.00714.44
7.3.70.0000.00914.57
7.3.60.0090.00614.63
7.3.50.0030.01214.92
7.3.40.0080.00314.57
7.3.30.0000.01114.63
7.3.20.0070.00316.61
7.3.10.0050.00816.47
7.3.00.0060.00816.62
7.2.250.0110.00714.91
7.2.240.0090.00614.94
7.2.230.0030.01414.63
7.2.220.0030.01314.86
7.2.210.0120.00314.85
7.2.200.0060.00314.69
7.2.190.0000.01214.97
7.2.180.0110.00314.83
7.2.170.0090.00614.88
7.2.130.0070.00716.78
7.2.120.0030.01116.86
7.2.110.0030.00816.97
7.2.100.0040.01016.81
7.2.90.0030.01116.65
7.2.80.0030.01016.96
7.2.70.0040.00616.67
7.2.60.0090.00516.96
7.2.50.0060.00916.94
7.2.40.0060.00716.88
7.2.30.0040.00716.84
7.2.20.0050.00916.79
7.2.10.0110.00516.87
7.2.00.0110.00416.76
7.1.330.0070.00715.75
7.1.320.0030.00915.70
7.1.310.0060.00915.65
7.1.300.0090.00915.89
7.1.290.0070.00715.51
7.1.280.0000.01515.80
7.1.270.0000.01415.79
7.1.260.0040.00915.73
7.1.250.0040.00815.53
7.1.70.0070.00717.03
7.1.60.0060.00619.57
7.1.50.0060.01316.57
7.1.00.0030.07722.50
7.0.200.0030.00716.88
7.0.140.0070.03021.98
7.0.60.0030.09019.91
7.0.50.0070.06717.78
7.0.40.0130.08320.23
7.0.30.0270.04020.04
7.0.20.0270.07320.09
7.0.10.0030.05720.00
7.0.00.0030.05020.32
5.6.280.0130.06721.11
5.6.210.0100.07720.52
5.6.200.0100.08018.12
5.6.190.0030.08720.67
5.6.180.0570.06720.59
5.6.170.0200.05720.47
5.6.160.0000.05720.52
5.6.150.0000.04718.13
5.6.140.0130.05018.10
5.6.130.0030.04718.17
5.6.120.0030.06021.04
5.6.110.0030.04021.13
5.6.100.0130.08321.08
5.6.90.0030.04321.11
5.6.80.0130.07720.52
5.5.350.0170.05720.29
5.5.340.0070.07718.02
5.5.330.0070.05720.37
5.5.320.0330.05320.31
5.5.310.0370.05320.12
5.5.300.0070.07717.88
5.5.290.0030.06718.03
5.5.280.0100.03320.79
5.5.270.0070.06720.95
5.5.260.0070.09020.67
5.5.250.0000.04720.69
5.5.240.0000.08020.02
5.4.450.0500.05719.61
5.4.440.0200.06019.27
5.4.430.0030.06719.52
5.4.420.0100.05319.32
5.4.410.0130.05319.20
5.4.400.0070.06718.85
5.4.390.0030.05719.06
5.4.380.0100.06719.00
5.4.370.0200.05018.59
5.4.360.0170.05018.72
5.4.350.0230.04718.69
5.4.340.0100.06018.56
5.4.320.0270.04718.68
5.4.310.0130.05018.73
5.4.300.0070.06018.70
5.4.290.0170.05018.61
5.4.280.0200.04718.68
5.4.270.0100.05718.68
5.4.260.0270.04018.57
5.4.250.0100.06018.68
5.4.240.0100.06018.43
5.4.230.0200.04718.57
5.4.220.0170.05318.73
5.4.210.0200.05018.57
5.4.200.0130.05016.65
5.4.190.0130.05318.45
5.4.180.0130.05318.63
5.4.170.0130.05718.45
5.4.160.0100.05718.58
5.4.150.0130.06018.44
5.4.140.0130.05716.21
5.4.130.0130.04716.17
5.4.120.0070.05716.07
5.4.110.0200.04316.08
5.4.100.0170.05016.20
5.4.90.0130.05316.26
5.4.80.0130.05016.20
5.4.70.0230.04316.22
5.4.60.0100.05716.01
5.4.50.0030.06016.29
5.4.40.0170.05316.31
5.4.30.0130.06016.02
5.4.20.0170.04716.26
5.4.10.0100.06016.19
5.4.00.0170.04715.47
5.3.290.0200.04714.56
5.3.280.0130.05314.52
5.3.270.0170.05314.58
5.3.260.0230.04714.52
5.3.250.0170.05014.65
5.3.240.0100.05714.56
5.3.230.0270.04014.64
5.3.220.0070.06014.49
5.3.210.0230.05014.54
5.3.200.0130.05314.65
5.3.190.0230.04314.51
5.3.180.0200.04714.54
5.3.170.0130.05314.63
5.3.160.0200.04714.64
5.3.150.0130.05314.61
5.3.140.0200.04714.55
5.3.130.0200.05014.52
5.3.120.0230.06314.52
5.3.110.0170.05714.52
5.3.100.0200.04713.94
5.3.90.0200.05314.06
5.3.80.0170.05013.95
5.3.70.0230.04313.95
5.3.60.0200.04713.98
5.3.50.0030.06013.93
5.3.40.0200.04713.91
5.3.30.0170.04313.81
5.3.20.0230.04313.68
5.3.10.0130.04713.63
5.3.00.0070.05713.71
5.2.170.0070.04711.14
5.2.160.0030.05011.14
5.2.150.0130.04311.18
5.2.140.0100.04311.11
5.2.130.0070.04711.25
5.2.120.0000.05011.14
5.2.110.0070.04711.06
5.2.100.0100.04011.14
5.2.90.0230.02711.25
5.2.80.0130.04011.07
5.2.70.0170.03711.07
5.2.60.0170.03311.03
5.2.50.0130.03710.96
5.2.40.0100.03711.14
5.2.30.0100.04010.93
5.2.20.0070.04310.98
5.2.10.0100.04710.91
5.2.00.0130.03710.86
5.1.60.0130.03010.08
5.1.50.0000.0439.98
5.1.40.0130.03010.08
5.1.30.0100.03310.33
5.1.20.0030.04710.39
5.1.10.0170.03310.13
5.1.00.0130.04710.18
5.0.50.0070.0408.60
5.0.40.0170.0308.42
5.0.30.0130.0478.31
5.0.20.0100.0338.32
5.0.10.0130.0308.14
5.0.00.0130.0478.15
4.4.90.0100.0275.90
4.4.80.0130.0235.87
4.4.70.0100.0205.88
4.4.60.0000.0275.92
4.4.50.0000.0275.93
4.4.40.0000.0405.91
4.4.30.0070.0205.86
4.4.20.0070.0205.92
4.4.10.0070.0206.00
4.4.00.0070.0335.95
4.3.110.0070.0205.83
4.3.100.0100.0175.85
4.3.90.0030.0235.89
4.3.80.0030.0335.77
4.3.70.0100.0235.81
4.3.60.0070.0235.78
4.3.50.0030.0275.79
4.3.40.0100.0305.74
4.3.30.0100.0174.53
4.3.20.0030.0234.54
4.3.10.0030.0274.52
4.3.00.0200.0236.99

preferences:
39.39 ms | 400 KiB | 5 Q