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)); } } print_R($cols); foreach ($d as $row) { foreach ($row as $colid => &$col) $col = str_pad($col, $cols[$colid],"k"); 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.60.0080.00818.55
8.3.50.0120.00421.95
8.3.40.0090.00919.02
8.3.30.0120.00319.21
8.3.20.0000.00820.11
8.3.10.0080.00021.92
8.3.00.0040.00422.51
8.2.180.0110.00416.63
8.2.170.0060.00922.96
8.2.160.0070.01020.96
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0050.00226.16
8.2.120.0040.00419.49
8.2.110.0060.01221.18
8.2.100.0090.00317.90
8.2.90.0000.00919.31
8.2.80.0040.00417.97
8.2.70.0000.00917.87
8.2.60.0050.00317.92
8.2.50.0050.00318.07
8.2.40.0040.00418.34
8.2.30.0040.00418.11
8.2.20.0000.00817.77
8.2.10.0040.00417.87
8.2.00.0030.00717.84
8.1.280.0070.00725.92
8.1.270.0080.00022.10
8.1.260.0030.00526.35
8.1.250.0030.00528.09
8.1.240.0030.00621.42
8.1.230.0080.00417.58
8.1.220.0050.00317.74
8.1.210.0030.00618.77
8.1.200.0100.00017.35
8.1.190.0040.00417.35
8.1.180.0050.00318.10
8.1.170.0000.00818.59
8.1.160.0000.00721.92
8.1.150.0030.00618.52
8.1.140.0040.00417.36
8.1.130.0000.00717.72
8.1.120.0030.00617.48
8.1.110.0040.00417.46
8.1.100.0050.00217.44
8.1.90.0070.00017.43
8.1.80.0040.00417.46
8.1.70.0000.00717.36
8.1.60.0050.00517.47
8.1.50.0040.00417.53
8.1.40.0000.00717.55
8.1.30.0000.00817.69
8.1.20.0030.00617.58
8.1.10.0000.00917.57
8.1.00.0000.00817.42
8.0.300.0040.00418.77
8.0.290.0020.00516.75
8.0.280.0050.00318.36
8.0.270.0030.00317.26
8.0.260.0000.00916.79
8.0.250.0000.00717.08
8.0.240.0070.00016.91
8.0.230.0000.00717.01
8.0.220.0040.00416.90
8.0.210.0030.00316.96
8.0.200.0070.00017.05
8.0.190.0020.00517.06
8.0.180.0040.00416.86
8.0.170.0070.00017.04
8.0.160.0050.00316.97
8.0.150.0030.00316.88
8.0.140.0000.00716.98
8.0.130.0030.00313.34
8.0.120.0000.00716.82
8.0.110.0030.00616.97
8.0.100.0040.00416.82
8.0.90.0000.00716.78
8.0.80.0060.01216.95
8.0.70.0000.00716.86
8.0.60.0030.00316.92
8.0.50.0000.00816.83
8.0.30.0160.00817.28
8.0.20.0060.01317.40
8.0.10.0050.00316.95
8.0.00.0070.01016.83
7.4.330.0050.00015.00
7.4.320.0030.00316.46
7.4.300.0060.00016.61
7.4.290.0000.01116.43
7.4.280.0000.00716.59
7.4.270.0000.00716.61
7.4.260.0070.00016.64
7.4.250.0000.00716.56
7.4.240.0040.00416.63
7.4.230.0030.00316.43
7.4.220.0060.01216.53
7.4.210.0070.00916.59
7.4.200.0000.00716.34
7.4.190.0000.00716.64
7.4.160.0130.00416.60
7.4.150.0070.01117.40
7.4.140.0130.00917.86
7.4.130.0120.00716.40
7.4.120.0060.01116.59
7.4.110.0080.00816.59
7.4.100.0100.00716.55
7.4.90.0130.00716.63
7.4.80.0140.00619.39
7.4.70.0140.00316.56
7.4.60.0030.01416.47
7.4.50.0000.00716.27
7.4.40.0030.01522.77
7.4.30.0100.00616.50
7.4.00.0000.01515.03
7.3.330.0030.00313.18
7.3.320.0040.00413.12
7.3.310.0070.00016.39
7.3.300.0000.00716.22
7.3.290.0120.00916.37
7.3.280.0070.00816.32
7.3.270.0100.00717.40
7.3.260.0070.01116.34
7.3.250.0090.00916.42
7.3.240.0030.01316.67
7.3.230.0190.00616.39
7.3.210.0120.00616.53
7.3.200.0110.01119.39
7.3.190.0090.00916.58
7.3.180.0070.01016.38
7.3.170.0040.01416.38
7.3.160.0130.00316.46
7.3.120.0030.01014.98
7.3.00.0000.01316.66
7.2.330.0030.01416.38
7.2.320.0140.00916.46
7.2.310.0080.00816.75
7.2.300.0030.01316.53
7.2.290.0110.00716.73
7.2.130.0030.01016.78
7.2.120.0070.01017.04
7.2.110.0110.00416.77
7.2.100.0000.01216.68
7.2.90.0140.00017.01
7.2.80.0140.00016.92
7.2.70.0110.00016.93
7.2.60.0030.00617.14
7.2.50.0070.00416.86
7.2.40.0030.01016.98
7.2.30.0030.01316.96
7.2.20.0040.00417.06
7.2.10.0000.01617.13
7.2.00.0070.00918.27
7.1.250.0000.01215.62
7.1.240.0080.00015.84
7.1.230.0090.00615.54
7.1.220.0110.00015.80
7.1.210.0030.01315.97
7.1.200.0060.00615.60
7.1.190.0040.00815.97
7.1.180.0000.00915.89
7.1.170.0000.01215.94
7.1.160.0040.01115.68
7.1.150.0110.00615.91
7.1.140.0030.00615.91
7.1.130.0040.01115.78
7.1.120.0070.00315.54
7.1.110.0070.00315.71
7.1.100.0120.00716.83
7.1.90.0070.00315.89
7.1.80.0030.00915.65
7.1.70.0020.00616.52
7.1.60.0060.01117.94
7.1.50.0050.01316.56
7.1.40.0000.00715.76
7.1.30.0060.00315.71
7.1.20.0040.00715.60
7.1.10.0030.01015.91
7.1.00.0070.04019.05
7.0.330.0040.01215.28
7.0.320.0040.00915.49
7.0.310.0050.00515.52
7.0.300.0060.00615.02
7.0.290.0000.01215.25
7.0.280.0000.00815.44
7.0.270.0060.00315.39
7.0.260.0060.00314.97
7.0.250.0030.00615.34
7.0.240.0060.00315.17
7.0.230.0040.00815.21
7.0.220.0040.00415.25
7.0.210.0070.00715.44
7.0.200.0020.00516.15
7.0.190.0040.00815.12
7.0.180.0090.00015.45
7.0.170.0060.00315.37
7.0.160.0030.00615.54
7.0.150.0030.00915.43
7.0.140.0070.03718.77
7.0.130.0000.00715.31
7.0.120.0120.00315.58
7.0.110.0000.01615.41
7.0.100.0080.03317.51
7.0.90.0160.04017.74
7.0.80.0090.02317.62
7.0.70.0070.03917.58
7.0.60.0060.04217.59
7.0.50.0060.04517.89
7.0.40.0110.03616.74
7.0.30.0120.02316.66
7.0.20.0120.04016.58
7.0.10.0060.02716.78
7.0.00.0110.03216.76
5.6.380.0100.00314.50
5.6.370.0080.00314.03
5.6.360.0040.00413.90
5.6.350.0030.00614.16
5.6.340.0040.00814.57
5.6.330.0000.01114.24
5.6.320.0040.01114.36
5.6.310.0090.00614.28
5.6.300.0070.00714.45
5.6.290.0000.00814.77
5.6.280.0100.03517.66
5.6.270.0000.01414.31
5.6.260.0000.01014.61
5.6.250.0050.04617.47
5.6.240.0050.03017.57
5.6.230.0020.03517.42
5.6.220.0050.04617.37
5.6.210.0080.04417.34
5.6.200.0030.04817.70
5.6.190.0070.04017.65
5.6.180.0040.04617.70
5.6.170.0020.04917.68
5.6.160.0080.03817.66
5.6.150.0080.03517.85
5.6.140.0050.03317.74
5.6.130.0070.04217.89
5.6.120.0050.04717.77
5.6.110.0070.04417.59
5.6.100.0070.02317.56
5.6.90.0080.03317.78
5.6.80.0080.04517.58
5.6.70.0030.04117.30
5.6.60.0150.03317.34
5.6.50.0100.04017.36
5.6.40.0100.03817.32
5.6.30.0100.03617.42
5.6.20.0100.02317.21
5.6.10.0040.03017.43
5.6.00.0070.02617.33
5.5.380.0090.04216.03
5.5.370.0050.02715.82
5.5.360.0050.02915.76
5.5.350.0050.04315.82
5.5.340.0050.04116.06
5.5.330.0110.03716.28
5.5.320.0050.04216.13
5.5.310.0030.04016.18
5.5.300.0100.04116.01
5.5.290.0020.03016.08
5.5.280.0110.01815.98
5.5.270.0050.04716.15
5.5.260.0080.04416.06
5.5.250.0060.03915.99
5.5.240.0080.03815.87
5.5.230.0050.04015.74
5.5.220.0030.03815.77
5.5.210.0050.04115.69
5.5.200.0070.04215.63
5.5.190.0030.04315.63
5.5.180.0090.03515.75
5.5.170.0060.00611.41
5.5.160.0050.02515.68
5.5.150.0050.04015.80
5.5.140.0030.04015.82
5.5.130.0070.03915.80
5.5.120.0030.03215.78
5.5.110.0030.03915.72
5.5.100.0000.04715.68
5.5.90.0060.02615.77
5.5.80.0070.02315.67
5.5.70.0090.04115.62
5.5.60.0100.03215.75
5.5.50.0050.03115.70
5.5.40.0050.02815.66
5.5.30.0080.03015.57
5.5.20.0080.03715.68
5.5.10.0050.02915.60
5.5.00.0150.03215.64
5.4.450.0070.03815.49
5.4.440.0030.04515.32
5.4.430.0080.03515.32
5.4.420.0030.03515.32
5.4.410.0080.04215.20
5.4.400.0070.04315.01
5.4.390.0070.03715.14
5.4.380.0030.04215.18
5.4.370.0050.03615.15
5.4.360.0040.02915.13
5.4.350.0050.02515.07
5.4.340.0030.04315.15
5.4.330.0000.01011.32
5.4.320.0090.02015.10
5.4.310.0170.03215.18
5.4.300.0030.04115.10
5.4.290.0100.02215.06
5.4.280.0030.03915.10
5.4.270.0060.02415.15
5.4.260.0080.02515.15
5.4.250.0020.05215.15
5.4.240.0020.04315.17
5.4.230.0090.02815.03
5.4.220.0030.03415.04
5.4.210.0100.03515.30
5.4.200.0020.02415.29
5.4.190.0080.02115.20
5.4.180.0050.02815.03
5.4.170.0030.03315.14
5.4.160.0050.04415.17
5.4.150.0110.04115.19
5.4.140.0090.03713.71
5.4.130.0020.02813.79
5.4.120.0050.04013.86
5.4.110.0060.01813.82
5.4.100.0050.03713.80
5.4.90.0030.02513.82
5.4.80.0050.02713.83
5.4.70.0000.02813.83
5.4.60.0080.03513.86
5.4.50.0070.02013.82
5.4.40.0030.04213.81
5.4.30.0090.03713.81
5.4.20.0030.03913.81
5.4.10.0130.03313.82
5.4.00.0080.03313.60
5.3.290.0070.04312.92
5.3.280.0050.03912.85
5.3.270.0080.03812.92
5.3.260.0040.03512.88
5.3.250.0050.03512.94
5.3.240.0100.02512.86
5.3.230.0050.02312.85
5.3.220.0040.02012.84
5.3.210.0030.02312.95
5.3.200.0050.02812.90
5.3.190.0020.04312.88
5.3.180.0050.02412.86
5.3.170.0030.03312.90
5.3.160.0070.02312.88
5.3.150.0080.03712.94
5.3.140.0050.02512.86
5.3.130.0070.03812.84
5.3.120.0050.02312.90
5.3.110.0050.02312.88
5.3.100.0050.04012.63
5.3.90.0060.03812.68
5.3.80.0110.03612.67
5.3.70.0040.03312.60
5.3.60.0060.02212.58
5.3.50.0050.04012.60
5.3.40.0030.04012.53
5.3.30.0080.03112.59
5.3.20.0050.02712.46
5.3.10.0060.04012.46
5.3.00.0100.03512.43
5.2.170.0020.02312.43
5.2.160.0030.03012.43
5.2.150.0050.01812.43
5.2.140.0060.01612.43
5.2.130.0030.01812.43
5.2.120.0100.02812.43
5.2.110.0020.02212.43
5.2.100.0070.03312.43
5.2.90.0030.03612.43
5.2.80.0050.03312.43
5.2.70.0050.03212.43
5.2.60.0090.03012.43
5.2.50.0020.02912.43
5.2.40.0000.03212.43
5.2.30.0060.01612.43
5.2.20.0100.02312.43
5.2.10.0030.02812.43
5.2.00.0000.02112.43
5.1.60.0020.03012.43
5.1.50.0050.02312.43
5.1.40.0090.02312.43
5.1.30.0060.02812.43
5.1.20.0070.01512.43
5.1.10.0020.03212.43
5.1.00.0030.01812.43
5.0.50.0020.02512.43
5.0.40.0020.02612.43
5.0.30.0040.01612.43
5.0.20.0030.01212.43
5.0.10.0050.02312.43
5.0.00.0020.02712.43
4.4.90.0030.01812.43
4.4.80.0030.01512.43
4.4.70.0050.01212.43
4.4.60.0000.02212.43
4.4.50.0030.01612.43
4.4.40.0020.02712.43
4.4.30.0020.01812.43
4.4.20.0080.00712.43
4.4.10.0020.01612.43
4.4.00.0020.01712.43
4.3.110.0020.02312.43
4.3.100.0020.01012.43
4.3.90.0030.01312.43
4.3.80.0040.01412.43
4.3.70.0060.01012.43
4.3.60.0050.01512.43
4.3.50.0020.02012.43
4.3.40.0030.02512.43
4.3.30.0070.01512.43
4.3.20.0030.01412.43
4.3.10.0000.01212.43
4.3.00.0020.01512.43

preferences:
44 ms | 401 KiB | 5 Q