3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = array( array( "id", "int(10) unsigned", "NO", "PRI", "auto_increment" ), array( "title", "varchar(32)", "NO" ), array( "author", "varchar(32)", "NO" ), array( "category", "tinyint(3) unsigned", "NO" ), array( "date", "datetime", "NO" ), array( "post_ip", "int(10) unsigned", "NO" ), array( "approved_by", "varchar(32)", "NO" ), array( "text", "text", "NO" ) ); $cols = array(); $rows = 0; foreach ($d as $row) { ($rows < count($row) && $rows = count($row)); foreach($row as $id => $col) { (!isset($cols[$id]) && $cols[$id] = 0); ($cols[$id] < strlen($col) && $cols[$id] = strlen($col)); } } print_R($cols); foreach ($d as $row) { $row = array_pad($row,$rows,''); foreach ($row as $colid => &$col) $col = str_pad($col, $cols[$colid]); echo implode($row," # ") . "\n"; } /* id # int(10) unsigned # NO # PRI # auto_increment # [19:44] <teehee> title # varchar(32) # NO # [19:44] <teehee> author # varchar(32) # NO # [19:44] <teehee> category # tinyint(3) unsigned # NO # [19:44] <teehee> date # datetime # NO # [19:44] <teehee> post_ip # int(10) unsigned # NO # [19:44] <teehee> approved_by # varchar(32) # YES # [19:44] <teehee> text # text # NO # */

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.0160.00316.50
8.3.60.0130.00316.75
8.3.50.0110.00916.54
8.3.40.0130.00318.84
8.3.30.0110.01118.84
8.3.20.0080.00018.90
8.3.10.0080.00018.89
8.3.00.0100.00017.63
8.2.180.0150.00016.62
8.2.170.0120.00322.96
8.2.160.0150.00019.04
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0070.00026.16
8.2.120.0070.00020.88
8.2.110.0030.00620.39
8.2.100.0040.00817.91
8.2.90.0060.00319.17
8.2.80.0040.00418.05
8.2.70.0080.00017.63
8.2.60.0030.00618.03
8.2.50.0080.00018.05
8.2.40.0080.00019.94
8.2.30.0000.00817.89
8.2.20.0090.00317.63
8.2.10.0030.00517.87
8.2.00.0030.00717.82
8.1.280.0070.01025.92
8.1.270.0040.00423.99
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0030.00623.87
8.1.230.0000.01022.11
8.1.220.0080.00017.78
8.1.210.0060.00318.77
8.1.200.0000.01017.36
8.1.190.0080.00017.35
8.1.180.0060.00318.10
8.1.170.0080.00017.62
8.1.160.0000.00718.94
8.1.150.0070.00018.52
8.1.140.0040.00417.33
8.1.130.0030.00317.74
8.1.120.0040.00417.45
8.1.110.0000.00817.43
8.1.100.0000.00817.53
8.1.90.0040.00417.37
8.1.80.0030.00517.49
8.1.70.0030.00317.39
8.1.60.0030.00517.47
8.1.50.0040.00417.36
8.1.40.0030.00617.54
8.1.30.0030.00617.57
8.1.20.0100.00317.62
8.1.10.0000.00817.60
8.1.00.0000.00817.50
8.0.300.0040.00818.77
8.0.290.0080.00016.73
8.0.280.0000.00818.58
8.0.270.0000.00717.27
8.0.260.0000.00816.80
8.0.250.0050.00217.06
8.0.240.0040.00316.97
8.0.230.0000.00717.02
8.0.220.0000.00716.95
8.0.210.0070.00017.00
8.0.200.0030.00317.05
8.0.190.0060.00317.02
8.0.180.0070.00017.01
8.0.170.0000.00916.80
8.0.160.0080.00017.01
8.0.150.0090.00016.89
8.0.140.0000.00716.93
8.0.130.0050.00013.41
8.0.120.0030.00616.96
8.0.110.0000.00716.96
8.0.100.0040.00416.93
8.0.90.0000.00816.84
8.0.80.0030.01316.85
8.0.70.0030.00516.98
8.0.60.0000.00916.94
8.0.50.0040.00417.01
8.0.30.0070.01116.95
8.0.20.0100.01017.18
8.0.10.0040.00417.15
8.0.00.0130.00616.82
7.4.330.0000.00513.06
7.4.320.0030.00316.63
7.4.300.0030.00316.50
7.4.290.0000.00716.61
7.4.280.0000.00816.61
7.4.270.0000.00716.53
7.4.260.0050.00013.23
7.4.250.0030.00516.56
7.4.240.0030.00316.58
7.4.230.0030.00516.62
7.4.220.0140.00516.55
7.4.210.0030.01316.56
7.4.200.0070.00016.59
7.4.190.0050.00216.48
7.4.160.0060.00916.70
7.4.150.0090.00916.37
7.4.140.0170.00916.62
7.4.130.0090.00916.63
7.4.120.0110.00716.59
7.4.110.0150.00316.52
7.4.100.0200.00016.61
7.4.90.0030.01616.46
7.4.80.0030.01419.39
7.4.70.0130.00316.59
7.4.60.0120.00616.68
7.4.50.0000.01116.49
7.4.40.0030.00716.41
7.4.30.0090.00916.58
7.4.10.0080.01015.03
7.4.00.0090.00914.84
7.3.330.0030.00313.24
7.3.320.0000.00613.14
7.3.310.0070.00016.40
7.3.300.0060.00016.32
7.3.290.0080.00616.29
7.3.280.0110.00816.28
7.3.270.0130.00316.55
7.3.260.0000.01916.54
7.3.250.0130.01016.51
7.3.240.0100.01016.31
7.3.230.0060.01616.50
7.3.210.0060.01216.55
7.3.200.0110.00616.38
7.3.190.0130.00316.72
7.3.180.0130.00416.61
7.3.170.0130.00416.52
7.3.160.0090.00916.37
7.3.130.0040.01414.74
7.3.120.0080.00914.87
7.3.110.0090.00714.96
7.3.100.0040.00714.77
7.3.90.0030.01014.71
7.3.80.0090.00614.77
7.3.70.0070.00814.88
7.3.60.0060.00514.90
7.3.50.0050.01014.88
7.3.40.0040.00614.73
7.3.30.0100.00314.91
7.3.20.0060.00816.77
7.3.10.0050.00716.79
7.3.00.0090.00316.59
7.2.330.0100.00716.71
7.2.320.0130.01016.83
7.2.310.0110.00716.71
7.2.300.0160.00616.55
7.2.290.0060.01016.77
7.2.260.0070.01115.07
7.2.250.0150.00314.99
7.2.240.0090.00514.90
7.2.230.0100.00615.21
7.2.220.0030.01514.96
7.2.210.0020.01314.82
7.2.200.0050.01115.07
7.2.190.0090.00615.07
7.2.180.0070.00715.13
7.2.170.0050.01015.09
7.2.160.0040.01115.04
7.2.150.0060.00916.89
7.2.140.0060.00616.91
7.2.130.0060.00717.10
7.2.120.0060.00617.07
7.2.110.0080.00616.82
7.2.100.0080.00716.84
7.2.90.0080.00817.06
7.2.80.0000.01516.69
7.2.70.0070.00916.93
7.2.60.0050.00716.92
7.2.50.0060.00816.89
7.2.40.0050.01017.07
7.2.30.0060.00917.00
7.2.20.0050.01216.91
7.2.10.0050.00616.90
7.2.00.0050.00917.63
7.1.330.0070.00915.57
7.1.320.0020.01215.97
7.1.310.0040.00915.96
7.1.300.0030.01015.57
7.1.290.0050.01115.78
7.1.280.0060.00515.87
7.1.270.0020.00915.88
7.1.260.0030.00815.79
7.1.250.0050.00815.80
7.1.240.0060.00515.70
7.1.230.0050.00715.83
7.1.220.0080.00515.74
7.1.210.0070.00615.86
7.1.200.0050.00815.73
7.1.190.0040.01115.91
7.1.180.0090.00315.82
7.1.170.0060.00515.79
7.1.160.0070.00815.92
7.1.150.0070.00815.91
7.1.140.0020.01215.86
7.1.130.0070.00515.90
7.1.120.0060.00615.80
7.1.110.0020.01015.74
7.1.100.0030.00716.59
7.1.90.0020.01016.02
7.1.80.0040.01015.75
7.1.70.0040.01016.32
7.1.60.0070.00816.94
7.1.50.0100.00516.11
7.1.40.0040.00815.75
7.1.30.0060.01015.81
7.1.20.0020.01015.60
7.1.10.0020.01115.67
7.1.00.0020.03018.02
7.0.330.0050.00915.37
7.0.320.0050.00915.48
7.0.310.0080.00615.35
7.0.300.0040.00715.58
7.0.290.0050.01115.50
7.0.280.0030.00815.34
7.0.270.0030.00815.44
7.0.260.0040.00915.29
7.0.250.0020.01215.47
7.0.240.0090.00315.55
7.0.230.0030.01215.52
7.0.220.0050.00415.47
7.0.210.0090.00615.44
7.0.200.0030.01115.93
7.0.190.0020.00815.55
7.0.180.0050.00615.34
7.0.170.0080.00315.25
7.0.160.0070.00715.55
7.0.150.0050.00815.42
7.0.140.0040.03117.56
7.0.130.0030.00815.38
7.0.120.0040.03017.68
7.0.110.0030.01215.43
7.0.100.0060.00615.38
7.0.90.0050.01015.52
7.0.80.0030.00815.37
7.0.70.0050.01015.34
7.0.60.0060.03116.95
7.0.50.0040.02716.31
7.0.40.0110.02915.75
7.0.30.0080.02215.72
7.0.20.0120.02515.72
7.0.10.0210.02715.58
7.0.00.0080.03015.67
5.6.400.0040.00914.45
5.6.390.0070.00714.50
5.6.380.0090.00714.54
5.6.370.0050.00814.65
5.6.360.0080.00714.62
5.6.350.0040.00714.43
5.6.340.0020.01414.55
5.6.330.0110.00314.65
5.6.320.0050.00714.41
5.6.310.0080.00814.63
5.6.300.0020.01014.66
5.6.290.0030.00914.20
5.6.280.0060.02916.71
5.6.270.0050.00814.24
5.6.260.0070.00414.48
5.6.250.0030.01214.51
5.6.240.0020.01114.49
5.6.230.0070.00214.54
5.6.220.0030.00814.50
5.6.210.0090.02316.57
5.6.200.0100.01715.69
5.6.190.0050.03716.40
5.6.180.0140.02716.50
5.6.170.0140.01916.54
5.6.160.0070.03216.60
5.6.150.0070.02715.62
5.6.140.0040.02415.73
5.6.130.0070.03315.87
5.6.120.0030.03816.70
5.6.110.0040.03416.65
5.6.100.0030.02216.57
5.6.90.0090.02316.49
5.6.80.0050.02516.36
5.6.70.1560.01516.41
5.6.60.0070.00914.48
5.6.50.0120.00214.40
5.6.40.0040.00914.30
5.6.30.0080.00514.29
5.6.20.0050.01214.31
5.6.10.0060.00814.32
5.6.00.0050.00914.34
5.5.380.0040.01114.38
5.5.370.0040.00614.45
5.5.360.0050.01014.55
5.5.350.0080.03016.29
5.5.340.0030.02415.69
5.5.330.0050.01916.30
5.5.320.0130.02516.39
5.5.310.0140.02316.42
5.5.300.0070.03115.67
5.5.290.0060.03215.60
5.5.280.0110.02716.67
5.5.270.0060.01716.56
5.5.260.0080.01716.57
5.5.250.0090.03016.55
5.5.240.0150.02916.18
5.5.230.0060.00714.45
5.5.220.0040.00814.37
5.5.210.0060.01014.25
5.5.200.0050.01014.44
5.5.190.0060.01114.46
5.5.180.0060.00614.24
5.5.170.0060.01014.57
5.5.160.0030.00814.24
5.5.150.0010.00714.08
5.5.140.0050.00814.06
5.5.130.0070.00814.37
5.5.120.0120.00114.20
5.5.110.0070.00514.40
5.5.100.0050.00914.27
5.5.90.0040.00914.42
5.5.80.0030.01014.57
5.5.70.0040.00814.43
5.5.60.0070.00714.44
5.5.50.0030.00814.51
5.5.40.0030.01014.40
5.5.30.0080.00414.42
5.5.20.0050.01014.19
5.5.10.0050.00714.28
5.5.00.0070.00414.25
5.4.450.0030.03014.00
5.4.440.0080.02413.97
5.4.430.0060.03114.13
5.4.420.0070.01913.97
5.4.410.0010.03214.01
5.4.400.0060.01813.81
5.4.390.0040.01913.81
5.4.380.0060.03013.89
5.4.370.0060.02013.93
5.4.360.0020.01913.85
5.4.350.0120.02513.78
5.4.340.0050.02614.04
5.4.330.0040.00711.20
5.4.320.0050.02314.07
5.4.310.0060.02913.86
5.4.300.0080.02813.87
5.4.290.0080.02213.93
5.4.280.0050.03114.00
5.4.270.0020.02013.81
5.4.260.0090.02513.83
5.4.250.0030.01513.83
5.4.240.0040.02313.92
5.4.230.0020.03013.96
5.4.220.0010.03313.85
5.4.210.0070.02713.87
5.4.200.0060.01813.92
5.4.190.0060.02913.98
5.4.180.0060.02213.97
5.4.170.0070.02213.84
5.4.160.0050.01513.99
5.4.150.0050.01913.91
5.4.140.0050.01513.04
5.4.130.0010.01813.13
5.4.120.0040.01613.02
5.4.110.0050.01612.98
5.4.100.0080.01212.96
5.4.90.0020.01812.97
5.4.80.0060.01813.02
5.4.70.0010.02913.10
5.4.60.0020.02012.97
5.4.50.0020.01812.89
5.4.40.0070.01413.00
5.4.30.0070.01513.04
5.4.20.0030.01713.03
5.4.10.0040.01313.01
5.4.00.0060.01312.86
5.3.290.0050.01912.28
5.3.280.0060.02112.25
5.3.270.0050.02212.28
5.3.260.0030.01812.24
5.3.250.0030.01812.27
5.3.240.0040.01712.19
5.3.230.0030.01712.18
5.3.220.0070.01412.23
5.3.210.0060.01712.20
5.3.200.0020.01912.14
5.3.190.0060.02612.13
5.3.180.0070.02512.27
5.3.170.0040.01612.23
5.3.160.0040.03112.20
5.3.150.0050.01712.28
5.3.140.0040.01612.19
5.3.130.0030.01812.27
5.3.120.0020.01912.25
5.3.110.0070.01512.24
5.3.100.0020.01811.98
5.3.90.0020.01912.04
5.3.80.0060.01311.96
5.3.70.0040.01511.95
5.3.60.0040.01412.04
5.3.50.0030.02011.95
5.3.40.0020.01712.01
5.3.30.0060.01611.98
5.3.20.0050.01511.87
5.3.10.0020.01611.80
5.3.00.0030.01711.84
5.2.170.0070.02711.17
5.2.160.0070.02311.19
5.2.150.0200.02011.05
5.2.140.0000.03011.11
5.2.130.0000.03011.11
5.2.120.0000.03011.17
5.2.110.0070.02311.16
5.2.100.0000.03011.08
5.2.90.0000.03011.27
5.2.80.0000.03011.16
5.2.70.0000.03011.14
5.2.60.0000.03011.03
5.2.50.0000.03310.98
5.2.40.0030.02711.05
5.2.30.0030.02710.95
5.2.20.0000.03010.98
5.2.10.0000.03010.87
5.2.00.0030.02710.69
5.1.60.0000.0309.94
5.1.50.0000.0309.98
5.1.40.0030.04010.05
5.1.30.0070.04310.40
5.1.20.0000.03710.37
5.1.10.0030.03010.04
5.1.00.0070.0509.99
5.0.50.0000.0379.54
5.0.40.0030.0439.54
5.0.30.0030.0379.54
5.0.20.0030.0209.54
5.0.10.0000.0279.54
5.0.00.0070.0339.54
4.4.90.0030.0139.54
4.4.80.0000.0139.54
4.4.70.0000.0179.54
4.4.60.0000.0179.54
4.4.50.0000.0139.54
4.4.40.0000.0239.54
4.4.30.0000.0309.54
4.4.20.0070.0139.54
4.4.10.0000.0339.54
4.4.00.0030.0509.54
4.3.110.0030.0239.54
4.3.100.0000.0209.54
4.3.90.0000.0179.54
4.3.80.0030.0239.54
4.3.70.0070.0309.54
4.3.60.0030.0339.54
4.3.50.0030.0209.54
4.3.40.0000.0309.54
4.3.30.0000.0209.54
4.3.20.0000.0239.54
4.3.10.0000.0379.54
4.3.00.0030.0339.54

preferences:
157.77 ms | 401 KiB | 5 Q