3v4l.org

run code in 300+ PHP versions simultaneously
<?php // 03.data_types.php print gettype(true) . PHP_EOL; // bolean print gettype(12345) . PHP_EOL; // integer print gettype(1.2345) . PHP_EOL; // double print gettype("Hello") . PHP_EOL; // string print gettype([1, 2, 3]) . PHP_EOL; // array print gettype(new stdClass()) . PHP_EOL; // object print gettype(null) . PHP_EOL; // NULL

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.4.20.0030.00617.69
8.4.10.0130.00617.55
8.3.150.0070.01320.52
8.3.140.0090.00016.62
8.3.130.0090.00018.34
8.3.120.0090.00620.65
8.3.110.0110.00416.91
8.3.100.0090.00016.80
8.3.90.0080.01218.38
8.3.80.0070.00318.55
8.3.70.0040.01118.56
8.3.60.0090.00618.31
8.3.50.0140.00821.20
8.3.40.0090.00918.69
8.3.30.0120.00618.84
8.3.20.0140.00020.39
8.3.10.0100.00723.48
8.3.00.0040.00423.65
8.2.270.0080.00016.92
8.2.260.0030.00618.69
8.2.250.0140.00818.32
8.2.240.0100.00017.17
8.2.230.0050.00320.94
8.2.220.0040.00437.54
8.2.210.0040.00426.77
8.2.200.0060.00318.54
8.2.190.0090.00616.58
8.2.180.0120.00618.54
8.2.170.0110.00422.96
8.2.160.0070.00721.98
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0000.00819.52
8.2.110.0100.00020.95
8.2.100.0080.00417.78
8.2.90.0040.00417.94
8.2.80.0040.00418.03
8.2.70.0050.00317.63
8.2.60.0000.00817.80
8.2.50.0110.00018.07
8.2.40.0040.00421.17
8.2.30.0070.00017.91
8.2.20.0050.00317.58
8.2.10.0000.00718.05
8.2.00.0040.00417.86
8.1.310.0150.00016.80
8.1.300.0040.01120.21
8.1.290.0030.00618.88
8.1.280.0070.00725.92
8.1.270.0030.00620.73
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0060.00323.92
8.1.230.0080.00320.98
8.1.220.0000.00817.74
8.1.210.0030.00618.84
8.1.200.0080.00017.35
8.1.190.0000.00817.22
8.1.180.0000.00718.10
8.1.170.0040.00418.59
8.1.160.0050.00321.96
8.1.150.0070.00018.81
8.1.140.0040.00417.46
8.1.130.0030.00317.69
8.1.120.0040.00417.39
8.1.110.0040.00417.41
8.1.100.0050.00217.27
8.1.90.0040.00417.28
8.1.80.0030.00517.38
8.1.70.0080.00317.41
8.1.60.0090.00017.55
8.1.50.0030.00517.46
8.1.40.0000.00917.44
8.1.30.0000.00717.44
8.1.20.0070.00017.56
8.1.10.0080.00017.39
8.1.00.0040.00417.46
8.0.300.0040.00419.93
8.0.290.0040.00416.88
8.0.280.0030.00318.32
8.0.270.0040.00417.21
8.0.260.0000.00617.26
8.0.250.0040.00416.96
8.0.240.0000.00716.90
8.0.230.0070.00017.02
8.0.220.0000.00616.91
8.0.210.0000.00916.89
8.0.200.0000.00816.86
8.0.190.0060.00316.97
8.0.180.0040.00416.91
8.0.170.0040.00417.00
8.0.160.0030.00316.83
8.0.150.0080.00016.77
8.0.140.0030.00316.82
8.0.130.0030.00613.29
8.0.120.0000.00816.79
8.0.110.0000.00716.87
8.0.100.0040.00416.94
8.0.90.0030.00517.00
8.0.80.0110.00616.88
8.0.70.0080.00016.89
8.0.60.0040.00416.83
8.0.50.0040.00416.82
8.0.30.0050.01217.06
8.0.20.0100.01217.40
8.0.10.0040.00416.94
8.0.00.0090.00916.82
7.4.330.0030.00315.16
7.4.320.0030.00316.53
7.4.300.0040.00416.48
7.4.290.0040.00416.52
7.4.280.0080.00316.56
7.4.270.0000.00616.53
7.4.260.0060.00616.47
7.4.250.0050.00316.34
7.4.240.0050.00216.50
7.4.230.0030.00316.35
7.4.220.0090.00916.47
7.4.210.0080.00716.46
7.4.200.0030.00316.23
7.4.160.0060.00916.57
7.4.150.0150.00917.40
7.4.140.0160.00217.86
7.4.130.0090.00816.61
7.4.120.0040.01416.41
7.4.110.0080.00816.41
7.4.100.0080.00816.24
7.4.90.0090.00916.54
7.4.80.0120.00819.39
7.4.70.0120.00416.55
7.4.60.0060.01016.52
7.4.50.0000.00816.36
7.4.40.0090.00916.34
7.4.30.0050.00816.37
7.4.00.0060.01214.96
7.3.330.0030.00313.08
7.3.320.0050.00012.97
7.3.310.0000.00716.26
7.3.300.0070.00016.21
7.3.290.0090.00816.20
7.3.280.0090.00816.17
7.3.270.0090.00917.40
7.3.260.0110.01416.59
7.3.250.0100.00816.20
7.3.240.0170.00316.08
7.3.230.0060.01216.41
7.3.210.0060.01116.38
7.3.200.0060.01516.30
7.3.190.0060.01616.13
7.3.180.0060.01016.36
7.3.170.0070.01016.40
7.3.160.0160.00616.46
7.3.10.0030.01116.63
7.3.00.0080.00816.42
7.2.330.0040.01416.63
7.2.320.0190.00316.64
7.2.310.0060.01016.53
7.2.300.0140.00316.43
7.2.290.0090.00916.55
7.2.130.0020.01016.85
7.2.120.0050.00816.78
7.2.110.0070.00616.76
7.2.100.0060.00616.69
7.2.90.0080.00516.66
7.2.80.0070.00716.77
7.2.70.0060.00516.78
7.2.60.0040.01116.79
7.2.50.0090.00616.74
7.2.40.0070.00916.77
7.2.30.0070.00716.97
7.2.20.0070.00716.78
7.2.10.0050.00716.89
7.2.00.0070.00816.83
7.1.250.0070.00815.77
7.1.240.0100.00715.66
7.1.230.0080.00515.40
7.1.220.0070.01015.68
7.1.210.0110.00415.70
7.1.200.0080.00515.61
7.1.190.0070.00415.76
7.1.180.0120.00015.56
7.1.170.0100.01015.41
7.1.160.0120.00015.27
7.1.150.0090.00615.67
7.1.140.0120.00015.75
7.1.130.0160.00315.57
7.1.120.0040.00815.54
7.1.110.0100.00715.29
7.1.100.0070.00916.82
7.1.90.0130.00615.66
7.1.80.0030.01015.57
7.1.70.0070.00416.39
7.1.60.0050.01417.47
7.1.50.0060.00815.96
7.1.40.0060.00615.54
7.1.30.0060.00815.59
7.1.20.0080.00815.55
7.1.10.0080.00415.54
7.1.00.0060.04018.82
7.0.330.0080.00415.33
7.0.320.0120.00615.12
7.0.310.0130.00315.06
7.0.300.0030.01315.10
7.0.290.0100.00715.38
7.0.280.0070.00715.08
7.0.270.0090.00615.04
7.0.260.0040.00714.99
7.0.250.0070.00715.25
7.0.240.0090.00615.05
7.0.230.0100.00715.30
7.0.220.0130.00015.09
7.0.210.0120.00315.17
7.0.200.0090.00615.95
7.0.190.0140.00014.91
7.0.180.0030.01414.88
7.0.170.0030.00915.07
7.0.160.0060.01014.75
7.0.150.0090.00315.14
7.0.140.0100.00715.33
7.0.130.0090.00315.39
7.0.120.0000.01015.45
7.0.110.0060.00615.39
7.0.100.0100.01015.54
7.0.90.0030.00915.15
7.0.80.0050.00515.09
7.0.70.0100.00715.54
7.0.60.0060.03017.67
7.0.50.0090.04016.61
7.0.40.0050.02516.49
7.0.30.0170.04516.69
7.0.20.0170.03916.69
7.0.10.0090.03216.82
7.0.00.0060.02916.72
5.6.380.0030.01314.27
5.6.370.0090.00614.09
5.6.360.0060.00314.26
5.6.350.0000.00914.18
5.6.340.0000.00914.12
5.6.330.0030.00614.04
5.6.320.0040.00814.59
5.6.310.0040.00814.30
5.6.300.0000.01414.51
5.6.290.0100.00714.07
5.6.280.0120.00414.57
5.6.270.0000.01614.41
5.6.260.0000.01314.40
5.6.250.0070.00314.05
5.6.240.0070.00414.20
5.6.230.0120.00314.10
5.6.220.0100.00314.02
5.6.210.0100.03517.30
5.6.200.0070.03416.04
5.6.190.0020.02917.45
5.6.180.0180.04417.38
5.6.170.0180.04317.24
5.6.160.0070.02317.19
5.6.150.0080.04516.11
5.6.140.0070.02216.16
5.6.130.0080.02216.12
5.6.120.0150.03817.67
5.6.110.0110.04017.50
5.6.100.0050.03617.54
5.6.90.0070.03817.62
5.6.80.0090.04217.09
5.6.70.0070.00414.00
5.6.60.0090.00314.05
5.6.50.0050.00513.73
5.6.40.0040.00814.04
5.6.30.0070.00313.95
5.6.20.0070.01014.11
5.6.10.0000.00713.92
5.6.00.0030.00713.96
5.5.380.0030.00710.96
5.5.370.0030.00710.92
5.5.360.0030.00610.81
5.5.350.0210.03615.56
5.5.340.0020.02314.37
5.5.330.0070.04515.45
5.5.320.0170.03715.56
5.5.310.0070.02515.59
5.5.300.0030.04514.41
5.5.290.0050.03314.40
5.5.280.0160.03316.03
5.5.270.0080.02515.74
5.5.260.0080.03515.58
5.5.250.0000.02615.58
5.5.240.0030.02315.60
5.5.230.0090.00010.67
5.5.220.0000.00910.59
5.5.210.0050.00510.71
5.5.200.0030.00610.74
5.5.190.0060.00610.63
5.5.180.0120.00010.41
5.5.170.0030.00910.77
5.5.160.0060.00610.32
5.5.150.0030.00610.52
5.5.140.0040.00710.50
5.5.130.0070.00710.55
5.5.120.0050.00510.46
5.5.110.0050.00510.45
5.5.100.0070.00710.51
5.5.90.0060.00610.72
5.5.80.0000.01310.70
5.5.70.0030.00610.73
5.5.60.0050.00510.55
5.5.50.0070.00310.74
5.5.40.0040.00410.79
5.5.30.0060.00310.68
5.5.20.0030.00610.60
5.5.10.0000.00610.65
5.5.00.0000.00710.64
5.4.450.0180.03214.96
5.4.440.0510.04115.19
5.4.430.0470.03615.16
5.4.420.0420.03715.37
5.4.410.0530.03715.10
5.4.400.0440.03515.01
5.4.390.0500.03015.07
5.4.380.0420.03215.12
5.4.370.0440.03414.92
5.4.360.0400.03614.93
5.4.350.0560.03215.09
5.4.340.0490.02514.93
5.4.330.0040.01211.00
5.4.320.0530.03615.15
5.4.310.0500.02914.91
5.4.300.0530.03215.02
5.4.290.0410.03514.82
5.4.280.0470.03315.04
5.4.270.0490.02514.78
5.4.260.0470.03715.07
5.4.250.0570.03214.94
5.4.240.0670.03414.92
5.4.230.0620.03815.09
5.4.220.0650.03014.85
5.4.210.0420.03714.82
5.4.200.0510.02613.73
5.4.190.0490.03214.67
5.4.180.0410.02915.04
5.4.170.0510.02814.85
5.4.160.0410.03314.85
5.4.150.0500.03214.89
5.4.140.0440.02813.55
5.4.130.0520.02713.42
5.4.120.0370.03213.63
5.4.110.0430.02713.61
5.4.100.0380.02713.69
5.4.90.0410.02313.63
5.4.80.0400.02013.45
5.4.70.0370.02813.62
5.4.60.0350.02313.51
5.4.50.0440.02513.63
5.4.40.0480.03213.57
5.4.30.0420.02513.53
5.4.20.0420.02913.48
5.4.10.0380.03013.54
5.4.00.0370.02713.31
5.3.290.0380.03612.46
5.3.280.0430.02812.42
5.3.270.0430.02712.22
5.3.260.0420.02912.46
5.3.250.0430.02812.39
5.3.240.0460.02312.23
5.3.230.0410.02812.35
5.3.220.0460.02512.34
5.3.210.0410.03112.22
5.3.200.0390.03112.26
5.3.190.0440.02512.26
5.3.180.0460.02512.32
5.3.170.0380.02912.35
5.3.160.0450.02312.35
5.3.150.0410.03312.31
5.3.140.0500.02712.39
5.3.130.0350.03512.34
5.3.120.0350.03112.28
5.3.110.0460.02512.30
5.3.100.0430.02511.95
5.3.90.0410.02712.00
5.3.80.0340.02711.96
5.3.70.0410.02512.03
5.3.60.0400.02512.10
5.3.50.0430.02311.89
5.3.40.0330.03312.04
5.3.30.0400.02612.03
5.3.20.0330.03211.83
5.3.10.0360.02811.71
5.3.00.0400.02711.69
5.2.170.0350.0209.99
5.2.160.0330.02210.14
5.2.150.0300.02510.14
5.2.140.0320.02410.15
5.2.130.0380.01810.14
5.2.120.0330.02410.14
5.2.110.0190.0229.97
5.2.100.0040.02410.08
5.2.90.0070.0289.95
5.2.80.0080.02310.00
5.2.70.0180.02610.09
5.2.60.0350.02310.01
5.2.50.0420.02310.01
5.2.40.0220.0269.92
5.2.30.0340.02410.12
5.2.20.0260.0239.87
5.2.10.0230.0259.80
5.2.00.0250.0239.82
5.1.60.0250.0179.20
5.1.50.0220.0199.28
5.1.40.0250.0239.29
5.1.30.0220.0199.41
5.1.20.0230.0179.42
5.1.10.0270.0189.32
5.1.00.0170.0249.23
5.0.50.0130.0148.48
5.0.40.0140.0208.51
5.0.30.0120.0238.38
5.0.20.0140.0168.44
5.0.10.0150.0158.29
5.0.00.0130.0238.36
4.4.90.0170.0137.18
4.4.80.0140.0127.15
4.4.70.0150.0107.15
4.4.60.0130.0127.17
4.4.50.0120.0127.14
4.4.40.0180.0147.17
4.4.30.0140.0127.18
4.4.20.0150.0127.18
4.4.10.0130.0107.17
4.4.00.0100.0197.14
4.3.110.0120.0107.13
4.3.100.0150.0097.13
4.3.90.0110.0117.09
4.3.80.0150.0167.15
4.3.70.0080.0137.14
4.3.60.0070.0157.11
4.3.50.0120.0117.15
4.3.40.0130.0177.11
4.3.30.0020.0166.52
4.3.20.0030.0166.50
4.3.10.0050.0146.48
4.3.00.0030.0127.83

preferences:
61.94 ms | 403 KiB | 5 Q