3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i=10; if(gettype($i)=="integer"); echo"$i is integer"; ?> <?php $i=10.3; if(is_integer($i)) echo("$i is an integer"); if(is_string($i)) echo("$i is an 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)
8.3.60.0110.00418.40
8.3.50.0140.00322.94
8.3.40.0000.01518.76
8.3.30.0180.00019.04
8.3.20.0000.00720.39
8.3.10.0030.00720.41
8.3.00.0040.00419.38
8.2.180.0090.01116.50
8.2.170.0070.00722.96
8.2.160.0190.00020.40
8.2.150.0030.00624.18
8.2.140.0030.00624.66
8.2.130.0080.00026.16
8.2.120.0080.00020.95
8.2.110.0070.00322.13
8.2.100.0060.00618.22
8.2.90.0030.00619.22
8.2.80.0050.00317.97
8.2.70.0050.00317.63
8.2.60.0030.00517.80
8.2.50.0080.00018.07
8.2.40.0000.00718.22
8.2.30.0040.00419.41
8.2.20.0050.00217.76
8.2.10.0070.00018.16
8.2.00.0040.00417.73
8.1.280.0100.00725.92
8.1.270.0000.00823.84
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00623.99
8.1.230.0080.00419.14
8.1.220.0000.00717.74
8.1.210.0040.00418.77
8.1.200.0100.00017.35
8.1.190.0000.00817.35
8.1.180.0080.00018.10
8.1.170.0040.00418.36
8.1.160.0000.00821.95
8.1.150.0000.00818.79
8.1.140.0000.00717.39
8.1.130.0030.00317.85
8.1.120.0040.00417.35
8.1.110.0030.00517.44
8.1.100.0070.00017.42
8.1.90.0030.00317.44
8.1.80.0000.00817.46
8.1.70.0000.00717.36
8.1.60.0080.00017.43
8.1.50.0000.00917.53
8.1.40.0040.00417.53
8.1.30.0040.00417.64
8.1.20.0000.00817.66
8.1.10.0000.00817.35
8.1.00.0000.00817.39
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0030.00318.44
8.0.270.0040.00417.25
8.0.260.0030.00317.29
8.0.250.0070.00016.97
8.0.240.0040.00416.86
8.0.230.0080.00016.81
8.0.220.0070.00016.79
8.0.210.0040.00416.85
8.0.200.0050.00217.02
8.0.190.0040.00416.83
8.0.180.0070.00016.80
8.0.170.0060.00316.79
8.0.160.0040.00416.90
8.0.150.0070.00016.88
8.0.140.0050.00316.73
8.0.130.0000.00613.35
8.0.120.0030.00616.74
8.0.110.0000.00716.81
8.0.100.0000.00816.74
8.0.90.0000.00716.90
8.0.80.0160.00616.88
8.0.70.0090.00017.00
8.0.60.0000.00716.66
8.0.50.0040.00416.77
8.0.30.0120.01217.11
8.0.20.0060.01517.40
8.0.10.0040.00416.95
8.0.00.0080.01116.78
7.4.330.0000.00515.07
7.4.320.0030.00316.46
7.4.300.0000.00616.41
7.4.290.0030.00316.54
7.4.280.0000.00716.66
7.4.270.0000.00716.64
7.4.260.0030.00316.41
7.4.250.0050.00316.44
7.4.240.0020.00616.43
7.4.230.0030.00316.49
7.4.220.0090.00916.63
7.4.210.0070.00716.69
7.4.200.0040.00416.62
7.4.160.0060.00916.58
7.4.150.0130.00317.40
7.4.140.0130.00817.86
7.4.130.0120.00416.56
7.4.120.0080.00916.41
7.4.110.0100.00716.25
7.4.100.0110.00716.47
7.4.90.0170.00316.61
7.4.80.0070.01019.39
7.4.70.0060.01416.54
7.4.60.0000.01716.55
7.4.50.0030.00316.39
7.4.40.0150.00816.57
7.4.30.0040.01116.66
7.4.00.0050.01014.88
7.3.330.0000.00613.13
7.3.320.0070.00013.13
7.3.310.0000.00716.09
7.3.300.0030.00316.16
7.3.290.0130.00616.29
7.3.280.0080.00716.21
7.3.270.0120.00617.40
7.3.260.0120.00616.45
7.3.250.0150.00516.36
7.3.240.0130.01016.35
7.3.230.0030.01316.39
7.3.210.0070.01016.20
7.3.200.0120.00819.39
7.3.190.0120.01216.57
7.3.180.0110.00716.52
7.3.170.0060.01316.32
7.3.160.0120.00716.32
7.3.120.0040.01414.83
7.3.110.0060.01214.81
7.3.100.0070.01014.74
7.3.90.0100.00714.71
7.3.80.0040.00814.78
7.3.70.0070.00714.68
7.3.60.0000.00914.69
7.3.50.0000.00814.86
7.3.40.0040.01214.69
7.3.30.0090.00314.86
7.3.20.0030.00916.48
7.3.10.0090.00616.82
7.3.00.0080.00816.71
7.2.330.0120.00616.69
7.2.320.0080.00916.43
7.2.310.0080.01416.69
7.2.300.0140.00316.51
7.2.290.0060.01616.69
7.2.250.0070.01014.92
7.2.240.0070.01115.18
7.2.230.0070.01015.03
7.2.220.0110.00414.97
7.2.210.0030.01014.64
7.2.200.0090.00614.98
7.2.190.0030.01414.98
7.2.180.0030.00815.19
7.2.170.0030.01014.59
7.2.80.0060.00916.43
7.2.60.0100.00316.93
7.2.50.0070.00716.91
7.2.00.0130.00619.13
7.1.330.0070.01015.79
7.1.320.0070.00715.88
7.1.310.0060.00315.85
7.1.300.0000.01715.84
7.1.290.0060.00615.66
7.1.280.0100.00315.70
7.1.270.0000.01515.57
7.1.260.0070.00715.56
7.1.200.0100.00315.75
7.1.100.0000.01218.09
7.1.70.0000.00817.31
7.1.60.0140.01019.61
7.1.50.0070.01716.98
7.1.00.0000.08022.42
7.0.200.0040.00416.76
7.0.140.0030.07322.08
7.0.60.0000.04319.91
7.0.50.0070.08717.81
7.0.40.0070.08720.09
7.0.30.0470.05720.20
7.0.20.0300.07020.13
7.0.10.0070.08020.08
7.0.00.0130.08020.00
5.6.280.0000.07721.04
5.6.210.0070.03720.62
5.6.200.0130.07318.13
5.6.190.0000.05320.41
5.6.180.3370.03720.43
5.6.170.0230.05020.71
5.6.160.0070.06720.33
5.6.150.0100.07018.17
5.6.140.0130.06018.17
5.6.130.0030.06018.18
5.6.120.0030.09021.06
5.6.110.0130.06020.97
5.6.100.0200.06721.00
5.6.90.0070.04021.09
5.6.80.0270.05020.37
5.6.70.2300.03720.39
5.5.350.0370.06320.43
5.5.340.0000.04317.96
5.5.330.0100.04320.07
5.5.320.0370.07720.29
5.5.310.0370.06320.19
5.5.300.0070.05317.91
5.5.290.0030.08717.97
5.5.280.0000.04720.73
5.5.270.0070.07020.86
5.5.260.0100.08320.72
5.5.250.0070.08020.57
5.5.240.0170.07320.06
5.4.450.0500.05319.57
5.4.440.0870.05319.24
5.4.430.0830.05719.57
5.4.420.0770.05719.40
5.4.410.0970.05319.00
5.4.400.1200.04319.23
5.4.390.0870.04719.22
5.4.380.0400.05018.76
5.4.370.0230.06018.81
5.4.360.0270.05318.78
5.4.350.0400.08018.66
5.4.340.0330.05018.63
5.4.320.0090.03612.45
5.4.310.0090.05312.45
5.4.300.0110.04612.45
5.4.290.0090.05212.45
5.4.280.0080.05512.34
5.4.270.0100.05012.35
5.4.260.0100.05012.35
5.4.250.0100.03712.34
5.4.240.0090.03512.34
5.4.230.0130.03612.34
5.4.220.0060.04112.34
5.4.210.0080.03612.34
5.4.200.0060.04212.34
5.4.190.0070.04012.34
5.4.180.0070.03812.34
5.4.170.0070.03812.34
5.4.160.0110.03312.34
5.4.150.0080.03612.34
5.4.140.0090.04012.02
5.4.130.0070.04412.01
5.4.120.0120.04711.97
5.4.110.0130.03511.96
5.4.100.0160.03211.96
5.4.90.0110.04911.96
5.4.80.0120.04611.96
5.4.70.0120.04311.96
5.4.60.0140.04311.96
5.4.50.0110.04811.96
5.4.40.0110.04511.95
5.4.30.0110.04911.95
5.4.20.0130.04511.95
5.4.10.0060.04311.95
5.4.00.0030.04311.44
5.3.290.0060.04012.80
5.3.280.0060.03812.71
5.3.270.0090.04012.72
5.3.260.0080.03912.72
5.3.250.0050.04212.72
5.3.240.0040.04112.72
5.3.230.0060.03812.71
5.3.220.0070.03912.68
5.3.210.0080.04512.68
5.3.200.0070.04312.68
5.3.190.0100.03712.68
5.3.180.0040.04312.67
5.3.170.0030.04112.67
5.3.160.0090.03512.68
5.3.150.0050.03912.67
5.3.140.0070.03512.66
5.3.130.0090.03712.66
5.3.120.0130.03312.66
5.3.110.0090.03812.66
5.3.100.0070.03712.11
5.3.90.0110.04012.09
5.3.80.0060.04412.07
5.3.70.0110.04512.07
5.3.60.0160.04212.07
5.3.50.0070.04812.00
5.3.40.0110.04912.00
5.3.30.0060.05111.95
5.3.20.0070.03711.72
5.3.10.0100.03911.70
5.3.00.0080.03611.68
5.2.170.0090.0299.18
5.2.160.0040.0329.18
5.2.150.0070.0319.18
5.2.140.0090.0309.18
5.2.130.0040.0359.14
5.2.120.0080.0349.14
5.2.110.0080.0409.15
5.2.100.0120.0399.14
5.2.90.0090.0409.14
5.2.80.0120.0379.14
5.2.70.0040.0439.14
5.2.60.0130.0389.09
5.2.50.0050.0419.05
5.2.40.0060.0369.04
5.2.30.0090.0339.02
5.2.20.0090.0279.00
5.2.10.0050.0308.96
5.2.00.0070.0348.81
5.1.60.0070.0228.10
5.1.50.0030.0278.10
5.1.40.0040.0248.08
5.1.30.0060.0278.43
5.1.20.0090.0298.45
5.1.10.0020.0298.18
5.1.00.0110.0298.18
5.0.50.0070.0246.66
5.0.40.0010.0306.52
5.0.30.0040.0356.33
5.0.20.0030.0276.32
5.0.10.0060.0266.29
5.0.00.0030.0336.29
4.4.90.0040.0164.78
4.4.80.0020.0174.76
4.4.70.0030.0164.75
4.4.60.0010.0184.75
4.4.50.0030.0164.77
4.4.40.0030.0274.70
4.4.30.0040.0194.76
4.4.20.0020.0214.85
4.4.10.0010.0194.85
4.4.00.0040.0254.76
4.3.110.0030.0174.67
4.3.100.0020.0174.66
4.3.90.0050.0134.63
4.3.80.0070.0214.58
4.3.70.0020.0184.63
4.3.60.0010.0174.63
4.3.50.0020.0174.63
4.3.40.0040.0234.54
4.3.30.0030.0163.34
4.3.20.0030.0183.31
4.3.10.0040.0143.27
4.3.00.0130.0237.29

preferences:
42.52 ms | 401 KiB | 5 Q