3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i=95; if(gettype($i)=="integer"); echo"$i is integer"; ?> <?php $i=95; if(is_integer($i)) echo("$i is a integer"); if(is_string($i)) echo("$i is a string"); if(is_double($i) echo("$i is a double"); ?)

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.320.3130.03719.20
5.4.310.3000.03719.00
5.4.300.3030.03319.23
5.4.290.3270.03719.05
5.4.280.3270.03719.08
5.4.270.3270.03018.95
5.4.260.3200.03318.86
5.4.250.3330.03319.13
5.4.240.3300.03719.15
5.4.230.3570.04019.11
5.4.220.3400.03319.09
5.4.210.3630.04319.30
5.4.200.3430.04719.06
5.4.190.3370.05018.86
5.4.180.2970.04019.13
5.4.170.2630.03719.22
5.4.160.2900.03718.82
5.4.150.3100.03718.84
5.4.140.3070.02716.67
5.4.130.3330.03716.32
5.4.120.3500.02716.37
5.4.110.2700.03316.54
5.4.100.3300.03716.46
5.4.90.3330.03716.52
5.4.80.4030.03016.34
5.4.70.2800.02716.45
5.4.60.3100.03716.43
5.4.50.3400.03716.25
5.4.40.3070.03316.52
5.4.30.3070.03316.33
5.4.20.3300.03316.25
5.4.10.2930.03716.52
5.4.00.3300.03715.78
5.3.290.3130.03314.53
5.3.280.2900.03314.55
5.3.270.3570.05314.63
5.3.260.3030.04014.46
5.3.250.3370.03314.56
5.3.240.2730.03314.55
5.3.230.2930.04314.49
5.3.220.3270.03314.40
5.3.210.3200.04014.41
5.3.200.3300.03014.51
5.3.190.3270.03314.62
5.3.180.3030.03714.55
5.3.170.2930.03714.40
5.3.160.3000.03314.47
5.3.150.3100.03714.41
5.3.140.2330.03314.51
5.3.130.3300.04714.56
5.3.120.2900.03314.59
5.3.110.3130.03014.42
5.3.100.2530.03313.88
5.3.90.2870.04013.86
5.3.80.2730.03714.05
5.3.70.2970.03714.06
5.3.60.2570.03713.87
5.3.50.2570.03313.82
5.3.40.3600.04313.89
5.3.30.2570.03313.77
5.3.20.3130.04013.63
5.3.10.3100.03313.45
5.3.00.2970.03013.68
5.2.170.2600.02310.98
5.2.160.2670.02011.05
5.2.150.1870.03311.09
5.2.140.2500.02710.98
5.2.130.2500.02710.95
5.2.120.2530.02311.15
5.2.110.2770.03011.02
5.2.100.2800.03011.26
5.2.90.2800.02711.01
5.2.80.3300.03311.03
5.2.70.2770.03011.12
5.2.60.2670.03010.99
5.2.50.2830.03010.88
5.2.40.2070.03310.94
5.2.30.2270.03010.88
5.2.20.2100.03010.76
5.2.10.2600.03710.97
5.2.00.2430.03010.71
5.1.60.2030.02310.71
5.1.50.2200.02010.71
5.1.40.2370.03010.71
5.1.30.2330.02310.71
5.1.20.2230.02710.71
5.1.10.2300.02310.71
5.1.00.2300.02010.71
5.0.50.1170.02710.71
5.0.40.1270.02310.71
5.0.30.1030.03010.71
5.0.20.1170.02010.71
5.0.10.1100.02310.71
5.0.00.1230.04010.71
4.4.90.1200.02010.71
4.4.80.1200.02010.71
4.4.70.1000.01310.71
4.4.60.1200.02010.71
4.4.50.1170.02310.71
4.4.40.0970.02710.71
4.4.30.1170.01310.71
4.4.20.1030.01310.71
4.4.10.1100.01710.71
4.4.00.1070.02310.71
4.3.110.1170.02010.71
4.3.100.1270.02010.71
4.3.90.1170.01710.71
4.3.80.1100.02310.71
4.3.70.1000.01310.71
4.3.60.1270.02010.71
4.3.50.1170.01710.71
4.3.40.0970.02310.71
4.3.30.0630.02710.71
4.3.20.0630.02710.71
4.3.10.0670.02310.71
4.3.00.0670.02710.71

preferences:
140.92 ms | 1394 KiB | 7 Q