3v4l.org

run code in 300+ PHP versions simultaneously
<?php // http://williamsoriscompetition.com/enter.php?id=c54eaaa334be71e3da26536ffb365337185985da&score=1%2E926627&code=960349492860 $id = 'c54eaaa334be71e3da26536ffb365337185985da'; $score = urldecode('1%2E926627'); $num1 = toInt32(substr($id, 0, 1)) * toInt32(substr($id, -1, 1)); $num2 = toInt32(substr($score, 0, 1)) * toInt32(substr($id, 3, 1)); $num3 = toInt32(substr($id, 2, 1)) * toInt32(substr($score, -1, 1)); var_dump($num1, $num2, $num3); $code = $num1 . $num2 . $num3; var_dump($code); function toInt32($value) { $intval = hexdec($value); var_dump($value, $intval, PHP_INT_SIZE); return $intval; return (PHP_INT_SIZE === 8) ? ($intval - 0x100000000) : $intval; }

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.0070.01116.63
8.3.60.0070.01418.25
8.3.50.0090.01121.24
8.3.40.0040.01118.58
8.3.30.0100.00319.04
8.3.20.0040.00420.10
8.3.10.0040.00423.65
8.3.00.0080.00017.46
8.2.190.0000.01416.58
8.2.180.0120.00316.75
8.2.170.0070.00722.96
8.2.160.0100.00720.51
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0030.00526.16
8.2.120.0040.00419.23
8.2.110.0060.00322.14
8.2.100.0070.00417.72
8.2.90.0000.00919.23
8.2.80.0000.00917.97
8.2.70.0030.00517.49
8.2.60.0000.00818.04
8.2.50.0000.00818.07
8.2.40.0000.00818.22
8.2.30.0050.00218.07
8.2.20.0040.00717.63
8.2.10.0000.00817.96
8.2.00.0040.00418.20
8.1.280.0180.00425.92
8.1.270.0080.00020.27
8.1.260.0110.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00323.71
8.1.230.0000.01018.97
8.1.220.0040.00417.76
8.1.210.0080.00018.77
8.1.200.0060.00317.25
8.1.190.0070.00017.51
8.1.180.0030.00518.10
8.1.170.0030.00618.61
8.1.160.0040.00422.07
8.1.150.0080.00018.96
8.1.140.0070.00017.42
8.1.130.0030.00317.81
8.1.120.0050.00317.39
8.1.110.0040.00417.46
8.1.100.0040.00417.32
8.1.90.0080.00017.46
8.1.80.0040.00417.43
8.1.70.0000.00717.43
8.1.60.0050.00317.50
8.1.50.0030.00517.43
8.1.40.0080.00017.46
8.1.30.0040.00417.57
8.1.20.0050.00217.50
8.1.10.0030.00617.52
8.1.00.0070.00017.54
8.0.300.0000.00718.77
8.0.290.0000.00817.18
8.0.280.0000.00718.47
8.0.270.0000.00717.21
8.0.260.0030.00317.34
8.0.250.0070.00016.86
8.0.240.0090.00016.85
8.0.230.0000.00716.99
8.0.220.0030.00316.75
8.0.210.0070.00016.94
8.0.200.0030.00316.86
8.0.190.0030.00516.91
8.0.180.0080.00416.85
8.0.170.0020.00516.91
8.0.160.0040.00416.89
8.0.150.0050.00416.94
8.0.140.0040.00416.87
8.0.130.0000.00613.39
8.0.120.0040.00416.89
8.0.110.0060.00316.90
8.0.100.0040.00416.89
8.0.90.0030.00516.98
8.0.80.0060.01216.84
8.0.70.0000.00816.80
8.0.60.0040.00416.97
8.0.50.0000.00716.89
8.0.30.0070.01617.01
8.0.20.0080.01117.40
8.0.10.0080.00016.93
8.0.00.0080.01116.76
7.4.330.0050.00015.03
7.4.320.0060.00016.43
7.4.300.0000.00616.54
7.4.290.0000.00716.52
7.4.280.0070.00316.52
7.4.270.0030.00316.61
7.4.260.0000.00816.61
7.4.250.0050.00216.62
7.4.240.0040.00416.49
7.4.230.0070.00016.53
7.4.220.0160.01616.53
7.4.210.0150.00616.71
7.4.200.0070.00016.60
7.4.160.0030.01316.46
7.4.150.0120.00617.40
7.4.140.0110.00717.86
7.4.130.0100.01016.43
7.4.120.0100.00816.54
7.4.110.0150.00316.80
7.4.100.0070.01116.53
7.4.90.0120.00416.45
7.4.80.0120.00619.39
7.4.70.0120.00916.52
7.4.60.0060.01016.45
7.4.50.0020.00216.63
7.4.40.0110.00816.50
7.4.30.0040.01316.55
7.4.00.0070.01114.74
7.3.330.0050.00013.19
7.3.320.0060.00013.27
7.3.310.0030.00316.35
7.3.300.0000.00616.27
7.3.290.0100.00416.31
7.3.280.0100.01116.37
7.3.270.0140.00717.40
7.3.260.0030.01416.39
7.3.250.0110.00716.40
7.3.240.0110.00816.58
7.3.230.0120.00616.39
7.3.210.0160.00016.43
7.3.200.0120.00619.39
7.3.190.0100.00616.56
7.3.180.0080.00816.55
7.3.170.0100.00716.55
7.3.160.0150.00016.40
7.2.330.0180.01316.56
7.2.320.0060.01116.73
7.2.310.0120.00616.86
7.2.300.0040.01416.79
7.2.290.0110.01316.80
7.2.00.0200.00418.90
7.1.100.0030.00917.81
7.1.70.0030.00717.03
7.1.60.0070.01719.50
7.1.50.0070.01616.84
7.1.00.0030.07722.50
7.0.200.0030.00716.86
7.0.60.0030.04020.08
7.0.50.0030.04017.96
7.0.40.0000.09320.37
7.0.30.0370.04720.11
7.0.20.0270.04020.22
7.0.10.0070.08720.25
7.0.00.0070.09020.16
5.6.280.0130.06020.91
5.6.210.0100.07720.45
5.6.200.0100.06318.19
5.6.190.0070.07720.54
5.6.180.0330.06020.46
5.6.170.0170.06720.47
5.6.160.0070.06020.41
5.6.150.0100.07318.19
5.6.140.0000.09018.25
5.6.130.0030.04018.16
5.6.120.0070.08320.98
5.6.110.0130.07720.98
5.6.100.0070.06720.98
5.6.90.0100.08020.98
5.6.80.0130.07320.39
5.6.70.4630.03320.29
5.5.350.0100.08320.33
5.5.340.0070.04017.97
5.5.330.0000.09020.35
5.5.320.0030.08020.27
5.5.310.0170.05020.30
5.5.300.0070.08317.95
5.5.290.0030.05017.92
5.5.280.0030.07320.89
5.5.270.0100.08720.77
5.5.260.0070.08320.80
5.5.250.0000.08720.68
5.5.240.0270.06320.04
5.4.450.0630.06719.56
5.4.440.0730.05319.25
5.4.430.0070.05719.38
5.4.420.0170.05019.21
5.4.410.0100.07318.85
5.4.400.0170.05718.73
5.4.390.0170.06718.56
5.4.380.0100.06718.74
5.4.370.0200.06718.74
5.4.360.0170.06718.75
5.4.350.0270.06318.76
5.4.340.0170.05018.79
5.4.320.0200.05018.80
5.4.310.0130.07318.52
5.4.300.0170.05018.50
5.4.290.0170.05018.53
5.4.280.0170.05718.78
5.4.270.0170.05718.61
5.4.260.0100.06018.78
5.4.250.0030.06718.63
5.4.240.0170.06018.74
5.4.230.0130.06018.79
5.4.220.0130.05318.51
5.4.210.0200.04318.67
5.4.200.0130.04716.67
5.4.190.0070.06718.75
5.4.180.0100.05318.77
5.4.170.0100.06318.77
5.4.160.0170.05018.82
5.4.150.0170.05018.76
5.4.140.0100.05716.27
5.4.130.0170.06316.27
5.4.120.0130.05016.29
5.4.110.0130.04716.41
5.4.100.0030.06016.23
5.4.90.0170.04716.33
5.4.80.0070.05716.27
5.4.70.0200.05316.31
5.4.60.0100.05016.39
5.4.50.0200.04716.39
5.4.40.0230.06016.41
5.4.30.0030.05716.41
5.4.20.0230.06316.16
5.4.10.0130.06716.25
5.4.00.0170.05315.76
5.3.290.0100.07014.89
5.3.280.0100.06314.61
5.3.270.0200.05014.59
5.3.260.0230.06314.81
5.3.250.0130.06714.65
5.3.240.0130.07014.64
5.3.230.0130.07014.66
5.3.220.0130.06014.59
5.3.210.0070.06014.79
5.3.200.0070.05314.59
5.3.190.0200.05314.73
5.3.180.0200.04714.61
5.3.170.0030.06014.58
5.3.160.0130.05314.71
5.3.150.0100.05314.59
5.3.140.0170.05314.60
5.3.130.0170.05314.59
5.3.120.0100.05714.73
5.3.110.0100.07714.71
5.3.100.0100.07314.04
5.3.90.0100.05314.00
5.3.80.0070.05714.05
5.3.70.0170.05714.14
5.3.60.0100.06014.12
5.3.50.0170.06314.00
5.3.40.0100.07014.03
5.3.30.0100.05313.93
5.3.20.0070.05313.72
5.3.10.0170.04313.86
5.3.00.0170.04713.76
5.2.170.0200.04011.18
5.2.160.0100.04011.18
5.2.150.0100.04711.29
5.2.140.0230.03311.19
5.2.130.0030.04711.22
5.2.120.0170.03311.14
5.2.110.0030.04711.17
5.2.100.0170.04711.24
5.2.90.0130.05011.14
5.2.80.0130.03711.21
5.2.70.0230.03311.15
5.2.60.0130.04011.16
5.2.50.0070.05711.25
5.2.40.0070.05311.13
5.2.30.0070.05011.00
5.2.20.0130.04011.01
5.2.10.0100.04711.00
5.2.00.0170.04310.75
5.1.60.0000.04310.03
5.1.50.0000.04010.05
5.1.40.0100.04010.01
5.1.30.0070.04010.46
5.1.20.0070.03710.48
5.1.10.0070.03710.08
5.1.00.0230.02710.11
5.0.50.0170.0208.64
5.0.40.0100.0238.51
5.0.30.0100.0578.45
5.0.20.0100.0338.23
5.0.10.0130.0338.20
5.0.00.0070.0578.28
4.4.90.0000.0275.95
4.4.80.0000.0275.95
4.4.70.0100.0205.90
4.4.60.0030.0236.00
4.4.50.0030.0235.93
4.4.40.0070.0376.03
4.4.30.0070.0275.94
4.4.20.0030.0306.02
4.4.10.0000.0336.01
4.4.00.0000.0406.04
4.3.110.0000.0275.87
4.3.100.0000.0235.86
4.3.90.0000.0275.81
4.3.80.0070.0335.80
4.3.70.0130.0175.89
4.3.60.0100.0175.86
4.3.50.0000.0235.80
4.3.40.0100.0275.88
4.3.30.0000.0274.61
4.3.20.0000.0274.57
4.3.10.0030.0204.55
4.3.00.0070.0206.98

preferences:
31.52 ms | 401 KiB | 5 Q