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(); foreach ($d as $row) { foreach($row as $id => $col) { (!isset($cols[$id]) && $cols[$id] = 0); ($cols[$id] < strlen($col) && $cols[$id] = strlen($col)); } } foreach ($d as $row) foreach ($row as $colid => &$col) $col = str_pad($col, $cols[$colid],"k"); print_r($d); /* 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.60.0090.00616.63
8.3.50.0100.01016.46
8.3.40.0100.01018.80
8.3.30.0120.00918.66
8.3.20.0090.00018.77
8.3.10.0040.00420.57
8.3.00.0040.00419.38
8.2.180.0140.00716.88
8.2.170.0140.00322.96
8.2.160.0140.00021.19
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0080.00020.50
8.2.110.0030.00620.94
8.2.100.0080.00417.91
8.2.90.0000.00919.46
8.2.80.0000.00719.28
8.2.70.0060.00317.63
8.2.60.0030.00818.03
8.2.50.0040.00818.07
8.2.40.0060.00318.28
8.2.30.0050.00318.09
8.2.20.0000.00717.63
8.2.10.0050.00217.71
8.2.00.0060.00317.72
8.1.280.0000.01425.92
8.1.270.0040.00424.66
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0000.00922.54
8.1.230.0060.00620.85
8.1.220.0040.00417.74
8.1.210.0000.00918.97
8.1.200.0030.00617.25
8.1.190.0000.00717.52
8.1.180.0080.00018.10
8.1.170.0040.00418.69
8.1.160.0030.00518.79
8.1.150.0080.00018.58
8.1.140.0080.00017.52
8.1.130.0030.00317.85
8.1.120.0000.00717.52
8.1.110.0030.00517.37
8.1.100.0030.00517.42
8.1.90.0070.00317.38
8.1.80.0050.00217.41
8.1.70.0000.00717.34
8.1.60.0030.00617.55
8.1.50.0000.00717.39
8.1.40.0060.00317.54
8.1.30.0070.00017.70
8.1.20.0030.00517.68
8.1.10.0000.00717.58
8.1.00.0040.00417.57
8.0.300.0040.00419.98
8.0.290.0060.00316.63
8.0.280.0000.00718.39
8.0.270.0000.00717.16
8.0.260.0030.00316.89
8.0.250.0040.00417.00
8.0.240.0020.00517.01
8.0.230.0040.00416.88
8.0.220.0030.00316.96
8.0.210.0030.00316.81
8.0.200.0000.00717.05
8.0.190.0070.00317.00
8.0.180.0040.00416.98
8.0.170.0050.00316.97
8.0.160.0000.00717.01
8.0.150.0040.00416.92
8.0.140.0050.00516.91
8.0.130.0030.00313.42
8.0.120.0000.00816.82
8.0.110.0000.00816.80
8.0.100.0040.00416.94
8.0.90.0000.00716.71
8.0.80.0090.00616.89
8.0.70.0020.00516.88
8.0.60.0040.00416.82
8.0.50.0050.00216.87
8.0.30.0060.01317.23
8.0.20.0070.01117.24
8.0.10.0050.00217.00
8.0.00.0130.00616.74
7.4.330.0000.00412.99
7.4.320.0000.00616.59
7.4.300.0000.00616.58
7.4.290.0030.00316.63
7.4.280.0000.00816.63
7.4.270.0040.00416.63
7.4.260.0030.00313.29
7.4.250.0040.00416.52
7.4.240.0000.00716.58
7.4.230.0070.00016.72
7.4.220.0090.00916.62
7.4.210.0060.00816.70
7.4.200.0050.00216.71
7.4.190.0000.00716.41
7.4.160.0110.00616.64
7.4.150.0130.01016.62
7.4.140.0120.00716.50
7.4.130.0090.00916.61
7.4.120.0110.00616.52
7.4.110.0120.00616.52
7.4.100.0120.00616.50
7.4.90.0230.00916.57
7.4.80.0000.01619.39
7.4.70.0030.01916.52
7.4.60.0100.00816.32
7.4.50.0030.00616.61
7.4.40.0060.00916.34
7.4.30.0090.00916.48
7.4.00.0060.00615.11
7.3.330.0030.00313.18
7.3.320.0030.00313.29
7.3.310.0030.00316.29
7.3.300.0000.00816.34
7.3.290.0090.00616.32
7.3.280.0090.00816.34
7.3.270.0110.00816.38
7.3.260.0070.01016.46
7.3.250.0140.00816.45
7.3.240.0090.01016.29
7.3.230.0130.00416.64
7.3.210.0000.01716.39
7.3.200.0160.00616.44
7.3.190.0080.01216.43
7.3.180.0160.00016.66
7.3.170.0110.00916.65
7.3.160.0130.00916.42
7.3.120.0070.00714.86
7.2.330.0150.00316.82
7.2.320.0070.01016.70
7.2.310.0110.01416.85
7.2.300.0150.00616.78
7.2.290.0060.00916.57
7.2.00.0100.00719.30
7.1.100.0000.01318.45
7.1.70.0070.00717.05
7.1.60.0080.00317.31
7.1.50.0070.00417.01
7.1.00.0070.03022.36
7.0.200.0050.00316.93
7.0.140.0030.07021.99
7.0.120.0100.07022.02
7.0.60.0100.08019.92
7.0.50.0070.07017.89
7.0.40.0130.06320.21
7.0.30.0370.04320.20
7.0.20.0300.04720.09
7.0.10.0170.07720.16
7.0.00.0070.04020.31
5.6.280.0000.07720.91
5.6.210.0030.04020.77
5.6.200.0030.04318.19
5.6.190.0030.04720.57
5.6.180.3300.05720.48
5.6.170.0170.04020.54
5.6.160.0230.06720.45
5.6.150.0000.04718.17
5.6.140.0230.02318.21
5.6.130.0100.07318.28
5.6.120.0170.03321.02
5.6.110.0030.04321.01
5.6.100.0030.06021.04
5.6.90.0100.08021.00
5.6.80.0030.09320.57
5.5.350.0230.07720.44
5.5.340.0030.08718.03
5.5.330.0130.05320.21
5.5.320.0370.06320.23
5.5.310.0200.04320.23
5.5.300.0070.08317.97
5.5.290.0070.06717.95
5.5.280.0170.06020.81
5.5.270.0130.07720.77
5.5.260.0070.08020.90
5.5.250.0170.07020.69
5.5.240.0330.06320.29
5.4.450.0070.03719.18
5.4.440.0030.04019.21
5.4.430.0000.04319.56
5.4.420.0030.04019.46
5.4.410.0070.03319.49
5.4.400.0070.03319.15
5.4.390.0000.04018.87
5.4.380.0070.03719.15
5.4.370.0030.03719.14
5.4.360.0100.03019.24
5.4.350.0070.03318.87
5.4.340.0070.04318.97
5.4.320.0070.06019.21
5.4.310.0070.07719.15
5.4.300.0100.03019.14
5.4.290.0100.04019.20
5.4.280.0070.04719.00
5.4.270.0030.04319.24
5.4.260.0070.06719.07
5.4.250.0000.05319.23
5.4.240.0130.03319.14
5.4.230.0000.04319.24
5.4.220.0100.07318.96
5.4.210.0100.03319.15
5.4.200.0070.05318.91
5.4.190.0070.03719.10
5.4.180.0070.07319.19
5.4.170.0270.02718.91
5.4.160.0070.07718.93
5.4.150.0070.05318.82
5.4.140.0030.03716.50
5.4.130.0170.06016.38
5.4.120.0100.07016.50
5.4.110.0100.07016.66
5.4.100.0030.04316.53
5.4.90.0000.07316.34
5.4.80.0100.04016.37
5.4.70.0030.03716.65
5.4.60.0030.03716.37
5.4.50.0030.07016.27
5.4.40.0100.06016.27
5.4.30.0130.06016.35
5.4.20.0030.05016.46
5.4.10.0070.06716.43
5.4.00.0070.06015.84
5.3.290.0100.05314.59
5.3.280.0030.05014.62
5.3.270.0070.04714.62
5.3.260.0030.08314.69
5.3.250.0030.04714.64
5.3.240.0030.05014.67
5.3.230.0100.03714.75
5.3.220.0030.04014.46
5.3.210.0070.06714.72
5.3.200.0100.06014.63
5.3.190.0000.08314.59
5.3.180.0200.06714.71
5.3.170.0030.07714.63
5.3.160.0070.08014.61
5.3.150.0030.07014.57
5.3.140.0070.05014.57
5.3.130.0030.06014.51
5.3.120.0030.08314.55
5.3.110.0130.04314.57
5.3.100.0030.05014.09
5.3.90.0070.03714.02
5.3.80.0070.06013.98
5.3.70.0070.03714.06
5.3.60.0070.07714.04
5.3.50.0030.04014.00
5.3.40.0030.08013.95
5.3.30.0070.04313.95
5.3.20.0100.06713.70
5.3.10.0030.04013.71
5.3.00.0130.06713.69
5.2.170.0070.06011.13
5.2.160.0030.03011.16
5.2.150.0000.03711.22
5.2.140.0100.02711.19
5.2.130.0030.06011.09
5.2.120.0070.05311.09
5.2.110.0070.06011.16
5.2.100.0030.06311.00
5.2.90.0030.06311.13
5.2.80.0070.05711.16
5.2.70.0070.06011.10
5.2.60.0070.06011.06
5.2.50.0070.03311.08
5.2.40.0100.05311.15
5.2.30.0100.05311.05
5.2.20.0100.05311.02
5.2.10.0030.05010.87
5.2.00.0030.03010.70
5.1.60.0100.05010.02
5.1.50.0030.0239.91
5.1.40.0070.0239.96
5.1.30.0070.04310.40
5.1.20.0000.06010.27
5.1.10.0070.05710.05
5.1.00.0130.05010.06
5.0.50.0030.0479.09
5.0.40.0030.0279.09
5.0.30.0030.0609.09
5.0.20.0000.0379.09
5.0.10.0030.0439.09
5.0.00.0030.0639.09
4.4.90.0000.0239.09
4.4.80.0000.0309.09
4.4.70.0030.0179.09
4.4.60.0000.0239.09
4.4.50.0030.0379.09
4.4.40.0000.0539.09
4.4.30.0030.0179.09
4.4.20.0000.0379.09
4.4.10.0000.0239.09
4.4.00.0030.0479.09
4.3.110.0000.0209.09
4.3.100.0000.0379.09
4.3.90.0070.0309.09
4.3.80.0000.0379.09
4.3.70.0000.0339.09
4.3.60.0030.0339.09
4.3.50.0000.0279.09
4.3.40.0030.0509.09
4.3.30.0000.0379.09
4.3.20.0030.0379.09
4.3.10.0000.0279.09
4.3.00.0000.0179.09

preferences:
47.36 ms | 400 KiB | 5 Q