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) { $id = 0; foreach($row as $col) { if (!isset($cols[$id])) $cols[$id] = 0; if ($cols[$id] < strlen($col)) { $cols[$id] = strlen($col); } $id++; } } print_R($cols); /* 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.0110.00416.50
8.3.50.0130.00922.18
8.3.40.0120.00918.89
8.3.30.0070.01119.22
8.3.20.0040.00420.29
8.3.10.0050.00323.66
8.3.00.0080.00020.95
8.2.180.0150.00016.38
8.2.170.0150.00322.96
8.2.160.0070.01320.43
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00322.21
8.2.110.0070.00321.96
8.2.100.0000.01117.91
8.2.90.0040.00417.97
8.2.80.0100.00017.97
8.2.70.0080.00017.50
8.2.60.0040.00417.93
8.2.50.0050.00318.07
8.2.40.0030.00517.97
8.2.30.0030.00518.04
8.2.20.0030.00617.72
8.2.10.0000.00817.82
8.2.00.0030.00517.80
8.1.280.0200.00025.92
8.1.270.0030.00622.14
8.1.260.0020.00526.35
8.1.250.0050.00228.09
8.1.240.0000.01022.55
8.1.230.0070.00720.97
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0070.00417.35
8.1.190.0000.00817.53
8.1.180.0030.00518.10
8.1.170.0040.00418.47
8.1.160.0040.00422.02
8.1.150.0040.00418.60
8.1.140.0000.00717.50
8.1.130.0000.00717.82
8.1.120.0000.00717.45
8.1.110.0040.00417.43
8.1.100.0000.00717.36
8.1.90.0000.00817.47
8.1.80.0090.00017.48
8.1.70.0000.00817.38
8.1.60.0080.00017.59
8.1.50.0050.00317.49
8.1.40.0000.00817.42
8.1.30.0080.00017.63
8.1.20.0060.00317.55
8.1.10.0040.00417.56
8.1.00.0000.00717.48
8.0.300.0060.00319.85
8.0.290.0030.00517.18
8.0.280.0040.00418.36
8.0.270.0030.00317.25
8.0.260.0030.00316.80
8.0.250.0000.00716.99
8.0.240.0000.00716.96
8.0.230.0030.00616.81
8.0.220.0000.00716.80
8.0.210.0070.00016.84
8.0.200.0000.00616.97
8.0.190.0060.00316.85
8.0.180.0040.00416.93
8.0.170.0030.00516.91
8.0.160.0040.00416.77
8.0.150.0000.00716.82
8.0.140.0000.00816.80
8.0.130.0030.00313.34
8.0.120.0040.00416.91
8.0.110.0040.00416.71
8.0.100.0000.00716.85
8.0.90.0040.00416.86
8.0.80.0040.01216.88
8.0.70.0000.00716.72
8.0.60.0080.00016.89
8.0.50.0080.00016.85
8.0.30.0130.00916.96
8.0.20.0080.01117.40
8.0.10.0080.00016.91
8.0.00.0130.00716.62
7.4.330.0020.00215.00
7.4.320.0070.00016.63
7.4.300.0000.00716.49
7.4.290.0030.00516.43
7.4.280.0030.00316.50
7.4.270.0030.00316.61
7.4.260.0070.00016.58
7.4.250.0040.00416.50
7.4.240.0050.00216.60
7.4.230.0040.00316.58
7.4.220.0120.00616.67
7.4.210.0090.00516.59
7.4.200.0030.00516.42
7.4.190.0050.00216.38
7.4.160.0060.00916.44
7.4.150.0130.00317.40
7.4.140.0100.00717.86
7.4.130.0050.01416.52
7.4.120.0080.00916.51
7.4.110.0140.00416.62
7.4.100.0140.00716.50
7.4.90.0060.01216.32
7.4.80.0130.00716.37
7.4.70.0090.00616.67
7.4.60.0060.01216.42
7.4.50.0000.00516.33
7.4.40.0090.00622.77
7.4.30.0080.00816.53
7.4.00.0030.01315.03
7.3.330.0060.00013.11
7.3.320.0050.00013.17
7.3.310.0070.00016.39
7.3.300.0070.00016.32
7.3.290.0120.00916.28
7.3.280.0060.01116.28
7.3.270.0170.00317.40
7.3.260.0140.00716.54
7.3.250.0130.00616.53
7.3.240.0100.00716.56
7.3.230.0100.00716.39
7.3.210.0100.00616.56
7.3.200.0080.01419.39
7.3.190.0140.00716.64
7.3.180.0060.00916.34
7.3.170.0170.00716.30
7.3.160.0130.00616.71
7.3.120.0070.00414.84
7.2.330.0030.01416.75
7.2.320.0090.01216.45
7.2.310.0080.00916.85
7.2.300.0120.00616.41
7.2.290.0070.01016.77
7.2.80.0060.00616.64
7.2.60.0090.00317.01
7.2.50.0040.00817.00
7.1.200.0000.01215.76
7.1.70.0060.00617.38
7.1.60.0100.01319.29
7.1.50.0060.01117.02
7.1.00.0070.07322.34
7.0.200.0040.00416.51
7.0.140.0000.08022.04
7.0.60.0070.07719.93
7.0.50.0030.08317.86
7.0.40.0170.03020.13
7.0.30.0470.05720.08
7.0.20.0230.07320.26
7.0.10.0100.08320.06
7.0.00.0100.08020.22
5.6.280.0070.07020.90
5.6.210.0030.08320.55
5.6.200.0030.06018.18
5.6.190.0100.08020.64
5.6.180.0230.04320.61
5.6.170.0270.05020.54
5.6.160.0070.08320.57
5.6.150.0130.07318.18
5.6.140.0130.03018.21
5.6.130.0100.05718.21
5.6.120.0130.07720.90
5.6.110.0030.04321.11
5.6.100.0100.07321.14
5.6.90.0070.08720.96
5.6.80.0130.07320.43
5.6.70.3970.03720.39
5.5.350.0130.07720.50
5.5.340.0130.07318.00
5.5.330.0070.08020.40
5.5.320.0230.08020.19
5.5.310.0370.03720.35
5.5.300.0070.07717.93
5.5.290.0070.07018.08
5.5.280.0130.07720.78
5.5.270.0130.08020.72
5.5.260.0070.07020.64
5.5.250.0130.07320.70
5.5.240.0170.03020.08
5.4.450.2530.04019.20
5.4.440.2000.04019.63
5.4.430.1930.03719.39
5.4.420.1900.04019.40
5.4.410.2170.03719.17
5.4.400.2470.04319.16
5.4.390.2130.03319.09
5.4.380.1970.04319.07
5.4.370.1900.03719.25
5.4.360.1870.03719.13
5.4.350.1900.03019.06
5.4.340.2200.03718.98
5.4.320.2200.04018.95
5.4.310.1870.03719.13
5.4.300.2100.04018.99
5.4.290.2230.03719.16
5.4.280.2130.04319.07
5.4.270.2130.04019.20
5.4.260.2200.04318.83
5.4.250.2000.05019.12
5.4.240.2100.04719.21
5.4.230.2070.04018.98
5.4.220.2270.04018.98
5.4.210.2130.04018.82
5.4.200.2230.03319.05
5.4.190.2170.03718.86
5.4.180.2130.04019.18
5.4.170.1930.04718.98
5.4.160.1900.03719.21
5.4.150.2070.04019.19
5.4.140.1870.03716.36
5.4.130.1870.03716.49
5.4.120.2070.03716.49
5.4.110.2100.03716.55
5.4.100.2100.04716.54
5.4.90.1730.03316.40
5.4.80.2170.03716.36
5.4.70.2000.04316.53
5.4.60.2070.03316.43
5.4.50.1970.04316.16
5.4.40.2230.03716.42
5.4.30.2130.04016.25
5.4.20.2100.04316.37
5.4.10.2130.03316.16
5.4.00.2170.03315.80
5.3.290.2200.04014.57
5.3.280.2100.03314.65
5.3.270.2230.04714.77
5.3.260.2170.04014.66
5.3.250.2300.04014.65
5.3.240.1970.04014.84
5.3.230.1930.03714.61
5.3.220.2130.03714.49
5.3.210.2130.04314.50
5.3.200.1870.04014.48
5.3.190.1830.04714.80
5.3.180.2000.03314.68
5.3.170.1900.03714.51
5.3.160.1930.03314.48
5.3.150.1900.03714.65
5.3.140.1970.05014.55
5.3.130.2030.03314.56
5.3.120.2030.03714.45
5.3.110.1870.04014.48
5.3.100.2300.03714.15
5.3.90.2170.04013.95
5.3.80.2100.05014.07
5.3.70.2000.03714.03
5.3.60.1900.03313.98
5.3.50.2100.04713.86
5.3.40.1830.04014.10
5.3.30.1800.04014.03
5.3.20.2100.04013.61
5.3.10.2100.04013.67
5.3.00.2000.04313.73
5.2.170.1600.03011.65
5.2.160.1500.03011.65
5.2.150.1830.02711.65
5.2.140.1600.02711.65
5.2.130.1800.03011.65
5.2.120.2130.01311.65
5.2.110.1770.03311.65
5.2.100.1830.03311.65
5.2.90.1570.03311.65
5.2.80.1630.03011.65
5.2.70.1770.03711.65
5.2.60.1730.03711.65
5.2.50.1670.03011.65
5.2.40.1570.02711.65
5.2.30.1500.02711.65
5.2.20.1330.03011.65
5.2.10.1830.03011.65
5.2.00.1730.02011.65
5.1.60.1630.03011.65
5.1.50.1570.01711.65
5.1.40.1600.02311.65
5.1.30.1170.03011.65
5.1.20.1270.03011.65
5.1.10.1230.02311.65
5.1.00.1630.02711.65
5.0.50.0900.03011.65
5.0.40.0970.03011.65
5.0.30.1000.03711.65
5.0.20.0730.03311.65
5.0.10.0600.02011.65
5.0.00.0830.04311.65
4.4.90.0830.02011.65
4.4.80.0700.01711.65
4.4.70.0730.01711.65
4.4.60.0870.02311.65
4.4.50.0930.01311.65
4.4.40.0930.03311.65
4.4.30.1000.02011.65
4.4.20.0900.01711.65
4.4.10.0870.02311.65
4.4.00.0900.03311.65
4.3.110.0830.01311.65
4.3.100.0700.01311.65
4.3.90.0900.02011.65
4.3.80.0670.02311.65
4.3.70.0730.02011.65
4.3.60.0670.01711.65
4.3.50.0770.01711.65
4.3.40.0630.02711.65
4.3.30.0300.01711.65
4.3.20.0400.02311.65
4.3.10.0330.01711.65
4.3.00.0330.01711.65

preferences:
48.43 ms | 401 KiB | 5 Q