3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(is_numeric("32.00")); class foo { function get_flags($uid = NULL, $set=TRUE) { $flags = $this->get_metadata('flags', $uid); if($flags == FALSE){ return FALSE; } if($set){$this->flags = $flags;} return $flags; } function get_metadata($field, $uid) { print $field.$uid; } function __construct() { var_dump($this->get_flags(1, false)); } }

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.0150.00316.38
8.3.60.0030.01716.63
8.3.50.0110.00721.94
8.3.40.0070.00718.67
8.3.30.0070.00719.02
8.3.20.0100.00720.16
8.3.10.0070.01123.66
8.3.00.0060.00322.46
8.2.180.0070.01416.38
8.2.170.0120.00322.96
8.2.160.0070.01020.42
8.2.150.0100.01024.18
8.2.140.0080.00024.66
8.2.130.0030.00626.16
8.2.120.0050.00322.27
8.2.110.0090.00019.32
8.2.100.0060.00617.59
8.2.90.0050.00319.10
8.2.80.0030.00617.97
8.2.70.0000.00817.36
8.2.60.0040.00417.80
8.2.50.0080.00018.07
8.2.40.0050.00318.22
8.2.30.0050.00217.95
8.2.20.0040.00417.52
8.2.10.0080.00019.34
8.2.00.0040.00417.55
8.1.280.0140.00725.92
8.1.270.0050.00324.00
8.1.260.0100.01026.35
8.1.250.0070.01128.09
8.1.240.0060.00322.10
8.1.230.0080.00418.68
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0080.00017.11
8.1.190.0040.00417.13
8.1.180.0050.00318.10
8.1.170.0050.00518.08
8.1.160.0000.00721.91
8.1.150.0000.00718.51
8.1.140.0000.00817.27
8.1.130.0000.00717.77
8.1.120.0000.00717.24
8.1.110.0000.00817.30
8.1.100.0000.00717.31
8.1.90.0070.00017.25
8.1.80.0000.00717.23
8.1.70.0040.00417.30
8.1.60.0000.00817.45
8.1.50.0040.00417.29
8.1.40.0040.00417.38
8.1.30.0030.00517.39
8.1.20.0030.00617.52
8.1.10.0060.00317.35
8.1.00.0040.00417.29
8.0.300.0040.00420.21
8.0.290.0040.00416.63
8.0.280.0000.00718.33
8.0.270.0000.00817.15
8.0.260.0030.00316.74
8.0.250.0080.00016.85
8.0.240.0040.00416.71
8.0.230.0040.00416.83
8.0.220.0000.00716.75
8.0.210.0000.00716.76
8.0.200.0000.00716.79
8.0.190.0020.00516.71
8.0.180.0040.00416.74
8.0.170.0030.00516.82
8.0.160.0000.00816.65
8.0.150.0040.00416.67
8.0.140.0050.00816.64
8.0.130.0030.00313.18
8.0.120.0000.00716.69
8.0.110.0030.00516.78
8.0.100.0070.00016.71
8.0.90.0000.00716.60
8.0.80.0060.01216.68
8.0.70.0070.00016.73
8.0.60.0060.00316.84
8.0.50.0000.00716.63
8.0.30.0080.01516.94
8.0.20.0110.00917.40
8.0.10.0040.00416.72
8.0.00.0140.00916.58
7.4.330.0050.00015.03
7.4.320.0050.00316.34
7.4.300.0000.00716.39
7.4.290.0040.00416.39
7.4.280.0000.00716.43
7.4.270.0030.00316.55
7.4.260.0000.00716.40
7.4.250.0000.00716.37
7.4.240.0020.00516.42
7.4.230.0070.00016.50
7.4.220.0070.01516.39
7.4.210.0080.00916.49
7.4.200.0040.00416.37
7.4.190.0000.00716.52
7.4.160.0090.00916.55
7.4.150.0130.00617.40
7.4.140.0140.00617.86
7.4.130.0060.01016.40
7.4.120.0080.00916.34
7.4.110.0030.01416.36
7.4.100.0030.01316.45
7.4.90.0070.01116.43
7.4.80.0100.01216.63
7.4.70.0040.01316.06
7.4.60.0040.01316.31
7.4.50.0040.00416.31
7.4.40.0060.00922.77
7.4.30.0110.01116.38
7.4.00.0090.00614.88
7.3.330.0050.00013.16
7.3.320.0030.00313.13
7.3.310.0000.00716.21
7.3.300.0000.00716.16
7.3.290.0030.01216.25
7.3.280.0080.00716.17
7.3.270.0140.00917.40
7.3.260.0080.00916.40
7.3.250.0040.01716.22
7.3.240.0140.00316.22
7.3.230.0030.01316.48
7.3.210.0120.00616.11
7.3.200.0110.01719.39
7.3.190.0030.01416.36
7.3.180.0030.01416.23
7.3.170.0120.00316.33
7.3.160.0120.00816.21
7.3.120.0060.01014.41
7.3.110.0100.00614.96
7.3.100.0120.00314.71
7.3.90.0080.00514.83
7.3.80.0100.00614.78
7.3.70.0000.01414.75
7.3.60.0000.01114.65
7.3.50.0040.00814.77
7.3.40.0090.00914.70
7.3.30.0040.00414.46
7.3.20.0030.00616.46
7.3.10.0030.00916.46
7.3.00.0030.01416.23
7.2.330.0160.00316.31
7.2.320.0130.00616.28
7.2.310.0090.01216.34
7.2.300.0070.01416.43
7.2.290.0060.01016.41
7.2.250.0060.00914.86
7.2.240.0030.01414.81
7.2.230.0060.00914.66
7.2.220.0060.00914.72
7.2.210.0060.00314.88
7.2.200.0000.00915.01
7.2.190.0030.01014.78
7.2.180.0030.01014.86
7.2.170.0070.01114.55
7.2.60.0070.00716.78
7.2.50.0000.01116.44
7.1.330.0070.01015.60
7.1.320.0000.01415.41
7.1.310.0060.00715.78
7.1.300.0050.00515.54
7.1.290.0000.00915.59
7.1.280.0120.00315.66
7.1.270.0030.01015.63
7.1.260.0060.00615.66
7.1.200.0060.00615.53
7.1.70.0000.00917.11
7.1.60.0030.01619.29
7.1.50.0040.01116.73
7.1.00.0030.07722.54
7.0.200.0000.00716.63
7.0.140.0000.07722.00
7.0.60.0170.07320.06
7.0.50.0100.07717.88
7.0.40.0030.04720.29
7.0.30.0330.07720.26
7.0.20.0230.04720.25
7.0.10.0300.07320.07
7.0.00.0130.07020.25
5.6.280.0000.07321.08
5.6.210.0070.08020.65
5.6.200.0070.08018.16
5.6.190.0130.03720.46
5.6.180.0470.07320.48
5.6.170.0130.04720.51
5.6.160.0000.04320.46
5.6.150.0100.06318.25
5.6.140.0100.03318.24
5.6.130.0000.04318.28
5.6.120.0100.08021.03
5.6.110.0030.09021.13
5.6.100.0170.04321.04
5.6.90.0070.08721.14
5.6.80.0030.08720.29
5.6.70.3030.03020.38
5.5.350.0030.08720.39
5.5.340.0070.04017.99
5.5.330.0000.07320.27
5.5.320.0030.08320.24
5.5.310.0300.04320.30
5.5.300.0100.08318.07
5.5.290.0030.04018.09
5.5.280.0030.08720.98
5.5.270.0100.04320.80
5.5.260.0170.06720.88
5.5.250.0170.07320.59
5.5.240.0070.04720.36
5.4.450.0800.03719.64
5.4.440.1000.06019.57
5.4.430.0700.05019.19
5.4.420.0830.06719.44
5.4.410.0670.06319.45
5.4.400.0770.07319.02
5.4.390.0630.05318.83
5.4.380.0330.06718.79
5.4.370.0070.06018.83
5.4.360.0170.05318.50
5.4.350.0230.05018.47
5.4.340.0170.05318.68
5.4.320.0080.03912.50
5.4.310.0070.04112.50
5.4.300.0080.03712.50
5.4.290.0050.03912.50
5.4.280.0040.03712.40
5.4.270.0070.04112.40
5.4.260.0080.04312.40
5.4.250.0120.03012.38
5.4.240.0060.03712.39
5.4.230.0050.03812.38
5.4.220.0070.04212.38
5.4.210.0100.03212.38
5.4.200.0050.04012.38
5.4.190.0120.03612.38
5.4.180.0050.03612.38
5.4.170.0050.03712.39
5.4.160.0050.03812.38
5.4.150.0070.03512.38
5.4.140.0040.03812.05
5.4.130.0080.03312.04
5.4.120.0080.03312.01
5.4.110.0070.03312.00
5.4.100.0060.03412.00
5.4.90.0090.04012.00
5.4.80.0100.03412.00
5.4.70.0060.03512.00
5.4.60.0020.03911.99
5.4.50.0070.03512.00
5.4.40.0070.03411.99
5.4.30.0070.03511.98
5.4.20.0050.03711.98
5.4.10.0050.03511.98
5.4.00.0050.04111.47
5.3.290.0060.03912.80
5.3.280.0040.04012.71
5.3.270.0050.04212.72
5.3.260.0050.05012.72
5.3.250.0030.04012.72
5.3.240.0050.03812.72
5.3.230.0090.04512.70
5.3.220.0080.03912.68
5.3.210.0030.04412.68
5.3.200.0140.04412.68
5.3.190.0060.03912.67
5.3.180.0060.03712.67
5.3.170.0070.03812.67
5.3.160.0080.03612.67
5.3.150.0070.03712.67
5.3.140.0070.03712.66
5.3.130.0070.03812.66
5.3.120.0060.03912.65
5.3.110.0060.04112.66
5.3.100.0040.03812.12
5.3.90.0050.03712.09
5.3.80.0080.03812.09
5.3.70.0040.03912.09
5.3.60.0060.03712.07
5.3.50.0090.03312.02
5.3.40.0070.03612.02
5.3.30.0090.03211.98
5.3.20.0050.03711.77
5.3.10.0070.03411.73
5.3.00.0060.03711.71
5.2.170.0030.0349.22
5.2.160.0030.0329.22
5.2.150.0080.0359.22
5.2.140.0080.0369.21
5.2.130.0060.0319.18
5.2.120.0040.0319.18
5.2.110.0060.0299.18
5.2.100.0060.0299.18
5.2.90.0020.0319.18
5.2.80.0070.0289.17
5.2.70.0080.0279.16
5.2.60.0040.0309.13
5.2.50.0070.0279.10
5.2.40.0080.0279.07
5.2.30.0050.0349.04
5.2.20.0070.0279.04
5.2.10.0060.0348.95
5.2.00.0040.0308.80
5.1.60.0010.0278.09
5.1.50.0030.0268.09
5.1.40.0040.0258.08
5.1.30.0070.0238.42
5.1.20.0100.0328.45
5.1.10.0050.0338.17
5.1.00.0020.0278.17
5.0.50.0060.0196.65
5.0.40.0030.0206.50
5.0.30.0050.0316.33
5.0.20.0050.0256.30
5.0.10.0050.0216.29
5.0.00.0030.0326.28
4.4.90.0020.0164.77
4.4.80.0030.0154.75
4.4.70.0020.0164.75
4.4.60.0050.0144.75
4.4.50.0020.0164.77
4.4.40.0010.0274.71
4.4.30.0040.0144.76
4.4.20.0040.0144.84
4.4.10.0030.0154.85
4.4.00.0020.0264.76
4.3.110.0030.0174.67
4.3.100.0080.0184.67
4.3.90.0050.0184.63
4.3.80.0060.0234.58
4.3.70.0010.0164.63
4.3.60.0040.0154.63
4.3.50.0020.0194.63
4.3.40.0030.0244.54
4.3.30.0020.0203.33
4.3.20.0030.0163.31
4.3.10.0030.0153.27
4.3.00.0130.01313.14

preferences:
47.59 ms | 401 KiB | 5 Q