3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dtype; echo "The data type of variable is " . gettype($dtype) . "<br>"; $dtype = 15; //assigning int data type echo "The data type of variable is " . gettype($dtype) . "<br>"; $dtype = 15.55; //assigning double data type echo "The data type of variable is " . gettype($dtype) . "<br>"; $dtype = "Pakistan"; //assigning string data type echo "The data type of variable is now " . gettype($dtype) . "<br>"; $dtype = true; //assigning bolean data type echo "The data type of variable is now " . gettype($dtype) . "<br>"; echo "<br>"; $myvar = 100; echo "The data type of variable is " . gettype($myvar) . "<br>"; //getting variable type settype($myvar,"string"); echo "Now the variable type is " . gettype($myvar); ?>

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)
5.4.140.0100.07316.38
5.4.130.0030.07016.37
5.4.120.0200.06016.37
5.4.110.0000.08016.43
5.4.100.0030.06016.34
5.4.90.0030.04316.51
5.4.80.0100.07316.54
5.4.70.0100.05716.29
5.4.60.0030.06716.43
5.4.50.0100.04316.39
5.4.40.0030.04016.38
5.4.30.0070.07016.42
5.4.20.0100.06716.27
5.4.10.0170.05716.38
5.4.00.0030.04315.77
5.3.240.0070.06314.70
5.3.230.0030.05714.62
5.3.220.0100.03314.68
5.3.210.0030.07714.50
5.3.200.0070.07014.50
5.3.190.0200.06314.51
5.3.180.0170.07014.49
5.3.170.0070.07314.53
5.3.160.0030.05014.39
5.3.150.0070.03314.58
5.3.140.0100.03314.48
5.3.130.0000.05714.34
5.3.120.0030.04014.47
5.3.110.0070.07714.57
5.3.100.0000.08013.99
5.3.90.0100.04014.04
5.3.80.0100.04013.86
5.3.70.0130.06713.98
5.3.60.0070.05313.95
5.3.50.0070.04013.88
5.3.40.0070.04013.87
5.3.30.0070.03313.84
5.3.20.0130.06313.71
5.3.10.0000.03713.60
5.3.00.0030.03713.57

preferences:
141.75 ms | 1394 KiB | 7 Q