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]); 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.38
8.3.50.0120.00917.42
8.3.40.0130.00318.80
8.3.30.0070.01118.79
8.3.20.0080.00018.66
8.3.10.0050.00320.66
8.3.00.0130.00017.63
8.2.180.0110.00416.50
8.2.170.0040.01122.96
8.2.160.0070.00721.25
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00419.95
8.2.110.0070.01420.83
8.2.100.0100.00317.91
8.2.90.0080.00019.22
8.2.80.0040.00417.97
8.2.70.0030.00617.61
8.2.60.0040.00817.93
8.2.50.0040.00418.07
8.2.40.0030.00518.03
8.2.30.0050.00218.19
8.2.20.0040.00417.78
8.2.10.0000.00817.75
8.2.00.0000.00817.79
8.1.280.0120.00325.92
8.1.270.0000.00724.66
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.14
8.1.230.0070.00419.00
8.1.220.0030.00617.79
8.1.210.0050.00318.77
8.1.200.0000.01017.35
8.1.190.0000.00817.35
8.1.180.0050.00318.10
8.1.170.0000.00718.89
8.1.160.0000.00718.81
8.1.150.0040.00418.71
8.1.140.0030.00617.52
8.1.130.0080.00017.75
8.1.120.0040.00417.52
8.1.110.0000.00817.32
8.1.100.0050.00217.49
8.1.90.0030.00317.45
8.1.80.0040.00417.46
8.1.70.0030.00517.46
8.1.60.0000.00817.64
8.1.50.0050.00317.37
8.1.40.0070.00317.54
8.1.30.0040.00417.67
8.1.20.0040.00417.59
8.1.10.0050.00317.63
8.1.00.0020.00517.50
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0000.00718.51
8.0.270.0070.00017.33
8.0.260.0000.00716.75
8.0.250.0050.00216.94
8.0.240.0060.00316.95
8.0.230.0040.00317.00
8.0.220.0030.00316.79
8.0.210.0030.00316.81
8.0.200.0000.00816.84
8.0.190.0060.00316.91
8.0.180.0070.00016.82
8.0.170.0090.00016.80
8.0.160.0000.00816.82
8.0.150.0060.00316.97
8.0.140.0120.00016.74
8.0.130.0030.00313.42
8.0.120.0070.00016.86
8.0.110.0000.00816.89
8.0.100.0050.00316.84
8.0.90.0040.00416.91
8.0.80.0000.01416.86
8.0.70.0000.00716.75
8.0.60.0050.00316.84
8.0.50.0030.00516.93
8.0.30.0090.00916.96
8.0.20.0110.00816.96
8.0.10.0020.00517.00
8.0.00.0130.00516.80
7.4.330.0030.00313.02
7.4.320.0000.00616.64
7.4.300.0000.00616.44
7.4.290.0050.00316.57
7.4.280.0070.00016.50
7.4.270.0030.00316.54
7.4.260.0000.00513.23
7.4.250.0040.00416.59
7.4.240.0000.00816.66
7.4.230.0030.00316.54
7.4.220.0160.01016.61
7.4.210.0090.00616.61
7.4.200.0000.00816.41
7.4.190.0050.00216.69
7.4.160.0090.00616.52
7.4.150.0130.00416.49
7.4.140.0130.00916.51
7.4.130.0270.01616.50
7.4.120.0060.01216.54
7.4.110.0150.00316.58
7.4.100.0060.01616.56
7.4.90.0110.00716.29
7.4.80.0070.01016.37
7.4.70.0070.01416.55
7.4.60.0150.00416.61
7.4.50.0090.00016.13
7.4.40.0040.00816.37
7.4.30.0030.01316.52
7.4.00.0070.00714.98
7.3.330.0030.00313.18
7.3.320.0060.00013.09
7.3.310.0000.00716.42
7.3.300.0000.00716.37
7.3.290.0100.01016.38
7.3.280.0090.00616.31
7.3.270.0130.00316.32
7.3.260.0100.00716.51
7.3.250.0110.00916.48
7.3.240.0140.00816.48
7.3.230.0130.00616.37
7.3.210.0100.01616.56
7.3.200.0130.00819.39
7.3.190.0110.00816.52
7.3.180.0090.00616.38
7.3.170.0060.01016.39
7.3.160.0130.00816.45
7.3.120.0040.01215.16
7.3.110.0070.01114.91
7.3.100.0040.01214.84
7.3.90.0100.00714.88
7.3.80.0060.01214.61
7.3.70.0040.01114.65
7.3.60.0070.00714.90
7.3.50.0090.00315.07
7.3.40.0060.01014.67
7.3.30.0120.00314.86
7.3.20.0000.01216.73
7.3.10.0060.00716.77
7.3.00.0050.00716.62
7.2.330.0070.01116.70
7.2.320.0060.01716.66
7.2.310.0140.01416.77
7.2.300.0140.00716.77
7.2.290.0130.00316.59
7.2.240.0090.00915.15
7.2.230.0060.00615.00
7.2.220.0000.01615.24
7.2.210.0000.01014.85
7.2.200.0030.01314.99
7.2.190.0110.00614.73
7.2.180.0140.00314.73
7.2.170.0000.01415.15
7.2.160.0120.00614.89
7.2.150.0060.00616.58
7.2.140.0040.01116.77
7.2.130.0030.01216.83
7.2.120.0060.00816.92
7.2.110.0070.00816.95
7.2.100.0070.00816.83
7.2.90.0070.00716.82
7.2.80.0040.00816.93
7.2.70.0060.00916.96
7.2.60.0070.00717.03
7.2.50.0080.00716.96
7.2.40.0010.01116.92
7.2.30.0060.01016.94
7.2.20.0030.01016.85
7.2.10.0060.00916.88
7.2.00.0060.00817.45
7.1.330.0000.01215.66
7.1.320.0000.01315.83
7.1.310.0030.01015.94
7.1.300.0030.01015.67
7.1.290.0090.00615.86
7.1.280.0090.00615.68
7.1.270.0080.00315.43
7.1.260.0060.00915.60
7.1.250.0060.00615.80
7.1.240.0070.00715.72
7.1.230.0070.00715.74
7.1.220.0100.00315.89
7.1.210.0080.00315.80
7.1.200.0070.00915.66
7.1.190.0030.00815.71
7.1.180.0090.00315.72
7.1.170.0030.01215.93
7.1.160.0070.00815.76
7.1.150.0030.01215.82
7.1.140.0020.01015.76
7.1.130.0060.00715.75
7.1.120.0070.00515.90
7.1.110.0030.01015.71
7.1.100.0070.00716.64
7.1.90.0000.01315.60
7.1.80.0040.01515.87
7.1.70.0040.00816.34
7.1.60.0080.01016.98
7.1.50.0070.00416.11
7.1.40.0050.00815.62
7.1.30.0090.00515.77
7.1.20.0050.00715.85
7.1.10.0030.00915.66
7.1.00.0060.02917.88
7.0.330.0070.00615.17
7.0.320.0030.01015.18
7.0.310.0100.00415.30
7.0.300.0050.00815.25
7.0.290.0110.00215.27
7.0.280.0090.00615.29
7.0.270.0070.00815.34
7.0.260.0100.00615.18
7.0.250.0110.00315.40
7.0.240.0070.00315.44
7.0.230.0060.00715.20
7.0.220.0080.00515.29
7.0.210.0080.00815.29
7.0.200.0040.00915.73
7.0.190.0030.01015.36
7.0.180.0060.00415.53
7.0.170.0040.01015.51
7.0.160.0050.01015.46
7.0.150.0060.00815.27
7.0.140.0060.02917.55
7.0.130.0080.00715.51
7.0.120.0070.02717.74
7.0.110.0050.00815.52
7.0.100.0070.00815.32
7.0.90.0040.00815.41
7.0.80.0050.00615.43
7.0.70.0080.00715.28
7.0.60.0070.03016.88
7.0.50.0030.02516.24
7.0.40.0090.02115.70
7.0.30.0120.01915.65
7.0.20.0100.01715.65
7.0.10.0060.01815.58
7.0.00.0050.03515.63
5.6.380.0090.00614.24
5.6.370.0020.01314.57
5.6.360.0090.00514.42
5.6.350.0060.00814.28
5.6.340.0080.00514.50
5.6.330.0080.00714.40
5.6.320.0030.01414.52
5.6.310.0080.00314.68
5.6.300.0060.00914.35
5.6.290.0040.00914.07
5.6.280.0050.03716.64
5.6.270.0070.01014.36
5.6.260.0050.01014.50
5.6.250.0060.00914.24
5.6.240.0070.01014.29
5.6.230.0100.00414.45
5.6.220.0050.01114.57
5.6.210.0100.01716.34
5.6.200.0070.02415.55
5.6.190.0040.02116.54
5.6.180.0080.02016.36
5.6.170.0110.02116.47
5.6.160.0070.03416.40
5.6.150.0050.02815.60
5.6.140.0070.02115.62
5.6.130.0080.01815.65
5.6.120.0080.03016.68
5.6.110.0030.02116.58
5.6.100.0080.02816.55
5.6.90.0030.03516.43
5.6.80.0080.02516.42
5.6.70.0020.01114.28
5.6.60.0070.00514.10
5.6.50.0040.01214.29
5.6.40.0020.01214.36
5.6.30.0040.00914.23
5.6.20.0080.00514.56
5.6.10.0060.00814.18
5.6.00.0050.01014.44
5.5.380.0040.00611.14
5.5.370.0070.00311.43
5.5.360.0040.00711.29
5.5.350.0110.03214.43
5.5.340.0050.03113.53
5.5.330.0070.03014.15
5.5.320.0080.01914.42
5.5.310.0090.03414.36
5.5.300.0050.01713.59
5.5.290.0050.02513.43
5.5.280.0080.02114.43
5.5.270.0050.03314.51
5.5.260.0060.03514.38
5.5.250.0040.02514.43
5.5.240.0010.01814.08
5.5.230.0040.00611.07
5.5.220.0050.00510.96
5.5.210.0030.00810.94
5.5.200.0030.00911.22
5.5.190.0050.00611.13
5.5.180.0030.00811.13
5.5.170.0020.00911.24
5.5.160.0030.00511.50
5.5.150.0080.00311.34
5.5.140.0040.00711.19
5.5.130.0030.00511.11
5.5.120.0030.00811.34
5.5.110.0060.00611.17
5.5.100.0030.00711.18
5.5.90.0020.01211.45
5.5.80.0050.00511.12
5.5.70.0020.01111.21
5.5.60.0060.00311.13
5.5.50.0040.00811.27
5.5.40.0090.00211.31
5.5.30.0060.00711.20
5.5.20.0060.00511.12
5.5.10.0060.00611.19
5.5.00.0030.01011.24
5.4.450.0020.02314.02
5.4.440.0050.02813.85
5.4.430.0060.02513.79
5.4.420.0090.02814.02
5.4.410.0050.02013.83
5.4.400.0070.03113.87
5.4.390.0090.02613.89
5.4.380.0070.01913.64
5.4.370.0090.01913.69
5.4.360.0060.03013.65
5.4.350.0060.02813.76
5.4.340.0050.02513.68
5.4.330.0070.00411.01
5.4.320.0070.02213.81
5.4.310.0050.03113.71
5.4.300.0050.02213.54
5.4.290.0040.03113.78
5.4.280.0120.02213.71
5.4.270.0070.02513.78
5.4.260.0030.02913.67
5.4.250.0030.03213.75
5.4.240.0060.01513.74
5.4.230.0020.01813.60
5.4.220.0030.01713.71
5.4.210.0020.01813.71
5.4.200.0040.01613.91
5.4.190.0020.01913.87
5.4.180.0060.01613.62
5.4.170.0030.01813.65
5.4.160.0060.01413.69
5.4.150.0010.01913.61
5.4.140.0030.01412.95
5.4.130.0040.01712.98
5.4.120.0060.01312.96
5.4.110.0060.01612.78
5.4.100.0050.01512.88
5.4.90.0030.01712.97
5.4.80.0040.01612.86
5.4.70.0020.01812.78
5.4.60.0090.01212.80
5.4.50.0030.01512.95
5.4.40.0040.01412.83
5.4.30.0050.01412.89
5.4.20.0020.01812.96
5.4.10.0070.01512.89
5.4.00.0030.02712.71
5.3.290.0050.01711.99
5.3.280.0030.02111.87
5.3.270.0060.01611.89
5.3.260.0050.01311.93
5.3.250.0020.01911.97
5.3.240.0030.01711.84
5.3.230.0020.01711.89
5.3.220.0030.01811.92
5.3.210.0020.01711.98
5.3.200.0060.01511.78
5.3.190.0030.01812.01
5.3.180.0040.01712.02
5.3.170.0020.02011.92
5.3.160.0010.02111.89
5.3.150.0060.01511.92
5.3.140.0020.01711.97
5.3.130.0060.01211.94
5.3.120.0060.01611.91
5.3.110.0060.01211.98
5.3.100.0070.02611.79
5.3.90.0090.02311.69
5.3.80.0040.01911.71
5.3.70.0030.02911.64
5.3.60.0060.02711.82
5.3.50.0070.01411.59
5.3.40.0070.02211.74
5.3.30.0070.02311.74
5.3.20.0030.01811.57
5.3.10.0040.02811.34
5.3.00.0070.01711.42
5.2.170.0040.01310.20
5.2.160.0050.02310.06
5.2.150.0020.02510.14
5.2.140.0060.01210.11
5.2.130.0050.02310.00
5.2.120.0040.02510.16
5.2.110.0030.02310.08
5.2.100.0010.0209.98
5.2.90.0030.0249.99
5.2.80.0040.0159.96
5.2.70.0080.01310.01
5.2.60.0060.0119.91
5.2.50.0060.0209.99
5.2.40.0060.0169.96
5.2.30.0040.0199.90
5.2.20.0030.0159.82
5.2.10.0040.0239.68
5.2.00.0030.0159.75
5.1.60.0020.0109.39
5.1.50.0040.0219.39
5.1.40.0040.0159.41
5.1.30.0030.0139.56
5.1.20.0030.0229.57
5.1.10.0060.0219.45
5.1.00.0090.0179.42
5.0.50.0030.0098.94
5.0.40.0040.0118.90
5.0.30.0040.0138.84
5.0.20.0050.0168.83
5.0.10.0010.0178.83
5.0.00.0040.0208.83
4.4.90.0000.0158.83
4.4.80.0030.0138.83
4.4.70.0010.0128.83
4.4.60.0010.0158.83
4.4.50.0020.0078.83
4.4.40.0010.0228.83
4.4.30.0020.0138.83
4.4.20.0020.0138.83
4.4.10.0010.0148.83
4.4.00.0000.0188.83
4.3.110.0030.0078.83
4.3.100.0010.0108.83
4.3.90.0020.0118.83
4.3.80.0050.0198.83
4.3.70.0030.0108.83
4.3.60.0010.0128.83
4.3.50.0020.0158.83
4.3.40.0030.0178.83
4.3.30.0010.0168.83
4.3.20.0010.0138.83
4.3.10.0030.0128.83
4.3.00.0000.0138.83

preferences:
61.55 ms | 400 KiB | 5 Q