3v4l.org

run code in 300+ PHP versions simultaneously
<?php $values = array( 'string_empty' => '', 'string_bool_f' => 'false', 'string_bool_t' => 'true', 'int_0' => 0, 'int_1' => 1, 'int_neg' => -100, 'int_norm' => 100, 'array_empty' => array(), 'array_null_val' => array(null), ); $mask = "%-15.15s %7.7s\n"; // Print header printf($mask, 'Name', 'Value'); echo PHP_EOL; foreach ($values as $name => $val) { $empty = empty($val) ? 'true' : 'false'; printf($mask, $name, $empty); }

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.0100.01018.30
8.3.50.0100.00721.27
8.3.40.0110.00418.59
8.3.30.0090.00918.93
8.3.20.0070.00020.13
8.3.10.0070.00022.10
8.3.00.0080.00022.34
8.2.180.0090.01218.42
8.2.170.0120.00622.96
8.2.160.0070.00719.04
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0020.00526.16
8.2.120.0050.00319.79
8.2.110.0040.00421.94
8.2.100.0090.00517.78
8.2.90.0000.00819.29
8.2.80.0060.00317.97
8.2.70.0050.00317.48
8.2.60.0000.00817.93
8.2.50.0050.00318.07
8.2.40.0000.00818.16
8.2.30.0100.00018.07
8.2.20.0040.00417.59
8.2.10.0040.00417.63
8.2.00.0030.00617.73
8.1.280.0130.00725.92
8.1.270.0000.00822.20
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00623.96
8.1.230.0130.00019.14
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0070.00317.36
8.1.190.0040.00417.53
8.1.180.0050.00320.39
8.1.170.0090.00318.37
8.1.160.0030.00322.12
8.1.150.0100.00018.66
8.1.140.0040.00417.34
8.1.130.0000.00717.86
8.1.120.0030.00317.49
8.1.110.0030.00617.38
8.1.100.0000.00717.36
8.1.90.0000.00717.43
8.1.80.0070.00017.34
8.1.70.0000.00817.35
8.1.60.0000.00817.55
8.1.50.0030.00617.44
8.1.40.0070.00017.51
8.1.30.0020.00517.52
8.1.20.0040.00417.71
8.1.10.0080.00017.55
8.1.00.0040.00417.33
8.0.300.0000.00718.77
8.0.290.0030.00317.05
8.0.280.0000.00718.45
8.0.270.0000.00717.25
8.0.260.0030.00316.77
8.0.250.0030.00316.88
8.0.240.0000.01017.02
8.0.230.0040.00416.95
8.0.220.0030.00316.93
8.0.210.0000.00716.86
8.0.200.0060.00016.98
8.0.190.0000.00716.84
8.0.180.0070.00016.88
8.0.170.0040.00416.95
8.0.160.0050.00216.82
8.0.150.0000.00716.85
8.0.140.0030.00616.82
8.0.130.0030.00313.32
8.0.120.0040.00416.76
8.0.110.0040.00416.82
8.0.100.0070.00016.91
8.0.90.0040.00416.95
8.0.80.0140.00716.92
8.0.70.0030.00416.84
8.0.60.0000.00716.91
8.0.50.0050.00316.95
8.0.30.0130.00717.01
8.0.20.0080.01217.40
8.0.10.0030.00517.03
8.0.00.0080.00916.80
7.4.330.0000.00415.00
7.4.320.0000.00616.59
7.4.300.0000.00616.52
7.4.290.0070.00016.39
7.4.280.0060.00316.40
7.4.270.0000.00916.51
7.4.260.0030.00316.48
7.4.250.0050.00216.54
7.4.240.0030.00316.53
7.4.230.0030.00316.53
7.4.220.0120.00616.54
7.4.210.0080.01016.50
7.4.200.0000.00716.25
7.4.190.0040.00416.71
7.4.160.0060.01016.46
7.4.150.0090.00917.40
7.4.140.0180.00017.86
7.4.130.0090.00816.44
7.4.120.0060.01416.41
7.4.110.0130.00416.52
7.4.100.0110.00716.55
7.4.90.0080.00916.49
7.4.80.0150.00319.39
7.4.70.0100.00716.43
7.4.60.0120.00616.50
7.4.50.0030.00616.14
7.4.40.0060.01022.77
7.4.30.0100.00716.54
7.4.00.0070.01014.72
7.3.330.0000.00513.11
7.3.320.0020.00213.05
7.3.310.0070.00016.40
7.3.300.0060.00016.17
7.3.290.0120.00316.37
7.3.280.0090.00816.27
7.3.270.0040.01217.40
7.3.260.0120.00616.48
7.3.250.0080.01116.48
7.3.240.0140.00316.32
7.3.230.0040.01216.50
7.3.210.0130.00316.42
7.3.200.0110.00619.39
7.3.190.0180.00316.45
7.3.180.0060.01016.27
7.3.170.0130.01016.43
7.3.160.0040.01116.59
7.3.120.0080.00914.83
7.3.110.0090.00314.58
7.3.100.0030.01414.71
7.3.90.0030.01214.35
7.3.80.0030.01214.88
7.3.70.0030.00714.71
7.3.60.0070.00714.82
7.3.50.0090.00314.87
7.3.40.0070.00714.81
7.3.30.0070.00714.76
7.3.20.0090.00416.62
7.3.10.0030.01216.52
7.3.00.0040.01116.61
7.2.330.0030.01416.41
7.2.320.0090.00816.54
7.2.310.0090.00916.71
7.2.300.0100.01116.62
7.2.290.0070.00716.45
7.2.250.0030.01215.00
7.2.240.0030.01014.69
7.2.230.0090.00315.06
7.2.220.0090.00614.96
7.2.210.0060.00814.88
7.2.200.0040.01115.02
7.2.190.0000.00915.06
7.2.180.0070.00314.63
7.2.170.0000.01114.75
7.2.110.0000.01016.68
7.2.100.0040.00716.49
7.2.90.0000.01416.71
7.2.80.0060.00616.57
7.2.70.0000.00916.77
7.2.60.0030.01016.95
7.2.50.0090.00016.60
7.2.40.0080.00016.86
7.2.30.0090.00016.54
7.2.20.0060.00316.55
7.2.10.0000.01017.06
7.2.00.0070.00716.75
7.1.330.0100.00315.75
7.1.320.0060.00315.66
7.1.310.0100.00315.89
7.1.300.0070.00715.83
7.1.290.0030.01015.58
7.1.280.0090.00015.87
7.1.270.0080.00315.69
7.1.260.0000.01415.51
7.1.230.0030.00615.53
7.1.220.0000.01415.87
7.1.210.0110.00415.72
7.1.200.0060.00815.87
7.1.190.0030.00615.66
7.1.180.0000.00915.90
7.1.170.0060.00915.56
7.1.160.0060.00315.54
7.1.150.0060.00615.48
7.1.140.0060.00315.71
7.1.130.0040.00415.57
7.1.120.0000.01215.84
7.1.110.0070.00315.98
7.1.100.0040.00815.75
7.1.90.0090.00316.04
7.1.80.0040.00815.73
7.1.70.0050.00616.44
7.1.60.0070.00517.93
7.1.50.0050.01016.36
7.1.40.0090.00315.78
7.1.30.0150.00015.88
7.1.20.0100.00315.59
7.1.10.0080.00315.96
7.1.00.0000.02319.22
7.0.310.0040.00715.28
7.0.300.0040.01115.17
7.0.290.0040.00815.36
7.0.280.0000.01115.26
7.0.270.0000.00815.57
7.0.260.0000.01015.39
7.0.250.0040.00415.32
7.0.240.0000.00815.24
7.0.230.0080.00315.59
7.0.220.0090.00615.12
7.0.210.0060.00615.50
7.0.200.0040.00916.05
7.0.190.0100.00315.41
7.0.180.0080.00415.55
7.0.170.0080.00015.37
7.0.160.0080.00315.53
7.0.150.0090.00015.49
7.0.140.0060.03518.89
7.0.130.0040.00415.13
7.0.120.0030.00615.22
7.0.110.0030.00315.10
7.0.100.0070.00315.24
7.0.90.0050.00315.38
7.0.80.0000.01115.52
7.0.70.0040.00715.32
7.0.60.0070.03817.63
7.0.50.0050.04016.66
7.0.40.0050.02416.63
7.0.30.0180.03816.75
7.0.20.0170.02916.79
7.0.10.0160.04316.67
7.0.00.0070.04316.69
5.6.380.0030.01014.26
5.6.370.0030.01014.29
5.6.360.0130.00014.35
5.6.350.0110.00314.16
5.6.340.0120.00414.27
5.6.330.0060.00914.57
5.6.320.0110.00514.20
5.6.310.0100.00714.63
5.6.300.0180.00014.27
5.6.290.0090.00614.29
5.6.280.0100.03517.67
5.6.270.0040.00814.45
5.6.260.0070.00714.32
5.6.250.0090.00514.67
5.6.240.0120.00314.21
5.6.230.0060.00914.30
5.6.220.0110.00314.04
5.6.210.0070.03417.36
5.6.200.0110.03916.10
5.6.190.0050.04017.57
5.6.180.0210.03517.30
5.6.170.0170.03717.45
5.6.160.0150.03717.31
5.6.150.0050.02316.25
5.6.140.0100.04016.21
5.6.130.0110.04216.29
5.6.120.0070.02417.57
5.6.110.0090.02917.48
5.6.100.0100.04417.73
5.6.90.0130.03817.72
5.6.80.0170.03817.35
5.6.70.2320.02017.23
5.6.60.0080.00513.92
5.6.50.0110.00313.98
5.6.40.0070.00514.36
5.6.30.0060.01214.28
5.6.20.0160.00014.40
5.6.10.0000.01414.16
5.6.00.0090.00914.26
5.5.380.0080.00411.02
5.5.370.0040.00811.03
5.5.360.0070.00410.91
5.5.350.0120.03815.66
5.5.340.0060.02014.47
5.5.330.0150.03515.62
5.5.320.0290.03515.83
5.5.310.0190.02315.55
5.5.300.0100.03514.41
5.5.290.0080.04014.38
5.5.280.0070.04015.97
5.5.270.0130.03715.97
5.5.260.0040.04715.94
5.5.250.0110.03515.81
5.5.240.0140.02415.57
5.5.230.0090.00310.92
5.5.220.0090.00411.09
5.5.210.0100.00011.02
5.5.200.0060.00610.91
5.5.190.0050.00511.03
5.5.180.0050.00510.95
5.5.170.0060.00914.02
5.5.160.0080.00510.81
5.5.150.0070.00711.03
5.5.140.0120.00311.11
5.5.130.0120.00010.64
5.5.120.0080.00810.75
5.5.110.0060.00610.82
5.5.100.0060.00311.01
5.5.90.0000.01010.95
5.5.80.0070.00210.55
5.5.70.0080.00411.12
5.5.60.0110.00011.05
5.5.50.0050.00510.67
5.5.40.0000.01211.04
5.5.30.0100.00310.94
5.5.20.0040.00710.55
5.5.10.0000.01311.15
5.5.00.0100.00310.89
5.4.450.0060.02415.31
5.4.440.0130.02015.33
5.4.430.0670.02415.30
5.4.420.0230.02214.92
5.4.410.0230.02015.13
5.4.400.0300.02015.06
5.4.390.0130.01814.92
5.4.380.0380.03414.59
5.4.370.0440.02614.92
5.4.360.0490.02814.70
5.4.350.0420.03114.74
5.4.340.0490.03514.79
5.4.330.0000.00910.84
5.4.320.0080.02011.56
5.4.310.0050.02611.66
5.4.300.0090.01811.63
5.4.290.0070.02111.55
5.4.280.0070.02011.62
5.4.270.0070.02111.67
5.4.260.0060.02411.59
5.4.250.0110.02714.83
5.4.240.0140.02314.66
5.4.230.0020.03014.69
5.4.220.0090.02714.94
5.4.210.0050.03314.79
5.4.200.0090.03114.88
5.4.190.0090.02414.75
5.4.180.0030.03414.88
5.4.170.0100.03014.97
5.4.160.0080.03714.86
5.4.150.0100.03214.83
5.4.140.0060.03013.58
5.4.130.0030.03013.70
5.4.120.0090.02613.67
5.4.110.0060.03013.71
5.4.100.0110.02513.62
5.4.90.0090.02513.66
5.4.80.0090.03113.55
5.4.70.0140.02813.71
5.4.60.0050.03913.70
5.4.50.0150.03213.72
5.4.40.0080.03013.64
5.4.30.0120.02813.70
5.4.20.0060.03113.52
5.4.10.0120.02713.71
5.4.00.0040.03313.40
5.3.290.0020.02511.70
5.3.280.0130.02312.34
5.3.270.0070.03012.49
5.3.260.0070.02812.58
5.3.250.0130.02212.70
5.3.240.0090.02512.42
5.3.230.0090.03012.43
5.3.220.0080.03512.47
5.3.210.0080.03112.41
5.3.200.0120.02312.43
5.3.190.0060.02812.51
5.3.180.0060.03112.49
5.3.170.0120.03312.54
5.3.160.0110.03312.44
5.3.150.0050.03512.58
5.3.140.0050.03912.56
5.3.130.0100.02512.25
5.3.120.0040.04112.29
5.3.110.0040.03112.39
5.3.100.0080.03212.31
5.3.90.0070.02412.29
5.3.80.0050.03012.05
5.3.70.0100.02612.10
5.3.60.0080.02612.08
5.3.50.0040.03512.14
5.3.40.0080.02712.07
5.3.30.0080.03512.21
5.3.20.0090.02612.09
5.3.10.0040.03311.93
5.3.00.0070.03011.89
5.2.170.0070.02210.32
5.2.160.0020.02510.41
5.2.150.0070.02410.20
5.2.140.0070.03210.38
5.2.130.0060.02510.30
5.2.120.0070.02110.26
5.2.110.0070.02210.24
5.2.100.0050.02510.23
5.2.90.0090.01810.21
5.2.80.0030.02510.17
5.2.70.0070.02210.29
5.2.60.0050.02310.19
5.2.50.0020.03610.07
5.2.40.0030.02210.17
5.2.30.0080.02310.13
5.2.20.0040.0239.88
5.2.10.0030.0249.98
5.2.00.0100.0259.95
5.1.60.0030.0289.29
5.1.50.0030.0229.39
5.1.40.0010.0269.35
5.1.30.0080.0189.59
5.1.20.0030.0309.53
5.1.10.0020.0309.38
5.1.00.0000.0299.38
5.0.50.0000.0199.15
5.0.40.0040.0159.15
5.0.30.0050.0209.15
5.0.20.0070.0129.15
5.0.10.0060.0139.15
5.0.00.0040.0229.15
4.4.90.0020.0159.15
4.4.80.0030.0129.15
4.4.70.0000.0199.15
4.4.60.0030.0139.15
4.4.50.0010.0159.15
4.4.40.0020.0269.15
4.4.30.0030.0169.15
4.4.20.0030.0129.15
4.4.10.0050.0089.15
4.4.00.0030.0239.15
4.3.110.0050.0129.15
4.3.100.0020.0139.15
4.3.90.0020.0179.15
4.3.80.0030.0219.15
4.3.70.0030.0129.15
4.3.60.0040.0129.15
4.3.50.0030.0139.15
4.3.40.0020.0249.15
4.3.30.0020.0179.15
4.3.20.0000.0159.15
4.3.10.0030.0159.15
4.3.00.0000.01211.58

preferences:
45.38 ms | 401 KiB | 5 Q