3v4l.org

run code in 300+ PHP versions simultaneously
<pre><?php $file = " # Dump File # Database is ported from MS Access CREATE DATABASE IF NOT EXISTS `movedb`; # Table structure for table 'test_prefixSwitchboard Items' DROP TABLE IF EXISTS `test_prefixSwitchboard Items`; CREATE TABLE `tbl` ( `x` INTEGER NOT NULL, `y` INTEGER NOT NULL DEFAULT 0, `z` VARCHAR(255) ) ENGINE=innodb DEFAULT CHARSET=utf8; SET autocommit=1; # # Dumping data for table 'Switchboard Items' # INSERT INTO `tbl` ( `x`, `y`, `z`) VALUES ( '111' , '111' ,'111'); INSERT INTO `tbl` ( `x`, `y`, `z`) VALUES ( '222' , '2222' ,'222'); INSERT INTO `tbl` ( `x`, `y`, `z`) VALUES ( '333' , '333' ,'333'); "; preg_match_all( '/VALUES\s+\(\s+(.*?)(?=\);\s*$)/m', $file, $matches); foreach( $matches[1] as $match) echo $match . "\n";;

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.0160.00318.43
8.3.50.0140.00317.63
8.3.40.0090.00919.09
8.3.30.0160.00318.76
8.3.20.0040.00418.85
8.3.10.0040.00420.78
8.3.00.0080.00017.88
8.2.180.0140.00716.88
8.2.170.0130.00622.96
8.2.160.0060.00922.23
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0030.00526.16
8.2.120.0080.00019.89
8.2.110.0090.00021.23
8.2.100.0090.00318.03
8.2.90.0040.00419.27
8.2.80.0060.00318.05
8.2.70.0000.00817.88
8.2.60.0050.00317.93
8.2.50.0030.00618.07
8.2.40.0000.00818.26
8.2.30.0060.00318.04
8.2.20.0020.00517.76
8.2.10.0000.00817.83
8.2.00.0000.00817.77
8.1.280.0120.00325.92
8.1.270.0000.00824.66
8.1.260.0090.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00623.68
8.1.230.0090.00317.82
8.1.220.0080.00018.77
8.1.210.0070.00318.85
8.1.200.0030.00617.48
8.1.190.0060.00317.40
8.1.180.0000.00818.10
8.1.170.0040.00418.78
8.1.160.0030.00518.84
8.1.150.0070.00018.85
8.1.140.0090.00017.57
8.1.130.0030.00317.88
8.1.120.0000.00817.60
8.1.110.0000.00717.64
8.1.100.0050.00317.50
8.1.90.0040.00417.61
8.1.80.0050.00217.64
8.1.70.0000.00717.60
8.1.60.0000.00817.72
8.1.50.0050.00317.64
8.1.40.0050.00317.67
8.1.30.0000.00717.71
8.1.20.0080.00017.85
8.1.10.0000.00717.76
8.1.00.0040.00417.57
8.0.300.0000.00720.03
8.0.290.0080.00017.00
8.0.280.0030.00318.36
8.0.270.0030.00317.21
8.0.260.0050.00316.98
8.0.250.0000.00717.13
8.0.240.0080.00017.08
8.0.230.0030.00317.10
8.0.220.0030.00317.06
8.0.210.0030.00317.04
8.0.200.0050.00317.16
8.0.190.0000.00717.05
8.0.180.0050.00216.96
8.0.170.0000.00816.92
8.0.160.0000.00717.11
8.0.150.0000.00817.07
8.0.140.0000.00717.00
8.0.130.0050.00013.47
8.0.120.0000.00717.02
8.0.110.0040.00416.95
8.0.100.0000.00917.09
8.0.90.0060.00316.90
8.0.80.0070.01317.07
8.0.70.0050.00317.09
8.0.60.0040.00416.92
8.0.50.0050.00217.09
8.0.30.0040.01817.06
8.0.20.0070.01317.12
8.0.10.0080.00017.23
8.0.00.0070.01216.92
7.4.330.0050.00013.22
7.4.320.0000.00616.73
7.4.300.0070.00016.63
7.4.290.0000.00716.80
7.4.280.0080.00316.80
7.4.270.0040.00416.77
7.4.260.0040.00313.52
7.4.250.0030.00616.63
7.4.240.0030.00316.88
7.4.230.0030.00316.93
7.4.220.0060.01816.82
7.4.210.0100.00616.76
7.4.200.0030.00416.81
7.4.190.0040.00416.73
7.4.160.0060.01016.78
7.4.150.0090.01016.64
7.4.140.0120.01016.76
7.4.130.0090.00816.67
7.4.120.0170.00116.75
7.4.110.0070.01116.64
7.4.100.0150.00316.61
7.4.90.0110.00616.75
7.4.80.0090.00916.51
7.4.70.0090.00916.56
7.4.60.0060.01116.52
7.4.50.0000.00816.51
7.4.40.0000.00916.78
7.4.30.0080.00816.67
7.4.00.0030.01415.14
7.3.330.0000.00713.31
7.3.320.0050.00013.45
7.3.310.0030.00316.63
7.3.300.0000.00816.36
7.3.290.0100.00316.43
7.3.280.0040.01216.45
7.3.270.0130.00516.79
7.3.260.0100.01116.73
7.3.250.0060.01116.46
7.3.240.0090.00616.64
7.3.230.0090.00916.78
7.3.210.0070.01016.67
7.3.200.0150.00719.39
7.3.190.0080.01216.54
7.3.180.0130.00316.61
7.3.170.0060.01316.66
7.3.160.0130.00316.46
7.3.120.0060.00915.07
7.2.330.0110.00616.85
7.2.320.0060.01216.91
7.2.310.0140.00716.80
7.2.300.0120.00316.83
7.2.290.0120.00916.71
7.2.60.0060.00917.14
7.2.00.0000.01419.41
7.1.200.0070.00715.81
7.1.100.0070.00718.07
7.1.70.0000.00817.32
7.1.60.0070.01719.40
7.1.50.0140.01117.18
7.1.00.0100.06022.39
7.0.200.0000.00817.05
7.0.140.0100.06722.17
7.0.120.0000.07722.17
7.0.60.0100.06719.94
7.0.50.0030.05317.94
7.0.40.0100.08020.42
7.0.30.0570.06020.03
7.0.20.0400.05020.14
7.0.10.0330.04320.13
7.0.00.0100.07720.13
5.6.210.0030.04320.55
5.6.200.0070.04318.12
5.6.190.0100.07720.32
5.6.180.0300.06320.56
5.6.170.0270.07320.40
5.6.160.0070.08320.50
5.6.150.0000.05018.22
5.6.140.0030.08718.17
5.6.130.0030.05018.12
5.6.120.0100.08021.04
5.6.110.0000.05021.01
5.6.100.0070.08320.99
5.6.90.0000.04321.07
5.6.80.0070.05020.36
5.6.70.0200.04020.37
5.5.350.0200.07020.49
5.5.340.0100.07317.91
5.5.330.0100.04720.21
5.5.320.0100.08320.41
5.5.310.0330.07020.17
5.5.300.0100.07017.96
5.5.290.0130.08317.95
5.5.280.0170.05720.95
5.5.270.0070.08720.75
5.5.260.0100.07320.88
5.5.250.0100.07720.69
5.5.240.0030.06320.36
5.4.450.0030.08019.47
5.4.440.0070.08019.48
5.4.430.0100.08019.15
5.4.420.0130.07719.40
5.4.410.0000.04319.38
5.4.400.0000.08718.92
5.4.390.0030.05718.79
5.4.380.0100.03319.18
5.4.370.0000.04319.09
5.4.360.0100.03019.01
5.4.350.0070.03319.18
5.4.340.0030.03718.95
5.4.320.0070.04319.18
5.4.310.0100.03719.00
5.4.300.0030.04318.78
5.4.290.0030.03718.79
5.4.280.0030.03718.91
5.4.270.0070.03319.08
5.4.260.0030.03719.16
5.4.250.0000.04719.14
5.4.240.0000.04018.91
5.4.230.0070.03319.17
5.4.220.0030.03719.16
5.4.210.0100.03719.16
5.4.200.0030.04019.21
5.4.190.0070.03319.13
5.4.180.0000.04019.07
5.4.170.0070.03319.07
5.4.160.0100.03019.12
5.4.150.0030.03719.12
5.4.140.0070.03316.35
5.4.130.0030.04016.28
5.4.120.0000.04316.37
5.4.110.0070.03016.40
5.4.100.0130.07016.41
5.4.90.0070.06716.65
5.4.80.0000.04016.35
5.4.70.0130.03016.22
5.4.60.0170.03316.34
5.4.50.0100.06716.46
5.4.40.0030.06716.57
5.4.30.0030.06016.33
5.4.20.0030.04316.21
5.4.10.0030.04716.25
5.4.00.0230.06315.82
5.3.290.0070.03314.59
5.3.280.0000.04014.61
5.3.270.0000.04014.53
5.3.260.0030.03714.56
5.3.250.0000.04014.53
5.3.240.0070.03314.55
5.3.230.0000.04014.52
5.3.220.0000.04314.36
5.3.210.0030.03714.35
5.3.200.0170.05314.57
5.3.190.0030.04314.51
5.3.180.0130.07014.54
5.3.170.0000.04314.65
5.3.160.0130.04314.48
5.3.150.0000.06714.51
5.3.140.0130.05714.49
5.3.130.0130.07314.58
5.3.120.0100.05314.50
5.3.110.0230.06014.43
5.3.100.0070.04313.99
5.3.90.0130.06013.96
5.3.80.0130.06713.94
5.3.70.0070.07313.95
5.3.60.0030.06713.98
5.3.50.0000.04713.96
5.3.40.0000.04313.88
5.3.30.0030.05713.75
5.3.20.0130.06313.71
5.3.10.0030.05313.67
5.3.00.0130.06713.60
5.2.170.0030.05711.08
5.2.160.0000.04311.13
5.2.150.0070.06011.11
5.2.140.0030.05711.03
5.2.130.0070.04011.04
5.2.120.0000.06011.03
5.2.110.0100.05710.96
5.2.100.0030.06311.11
5.2.90.0100.05711.09
5.2.80.0070.04711.06
5.2.70.0030.05011.18
5.2.60.0170.05310.99
5.2.50.0130.05310.92
5.2.40.0130.05311.08
5.2.30.0070.05710.91
5.2.20.0100.05710.80
5.2.10.0030.02710.75
5.2.00.0070.06310.66
5.1.60.0030.0339.98
5.1.50.0070.05010.00
5.1.40.0030.0409.97
5.1.30.0100.05010.32
5.1.20.0030.03010.50
5.1.10.0030.03310.06
5.1.00.0000.04710.08
5.0.50.0030.0439.69
5.0.40.0000.0339.69
5.0.30.0030.0379.69
5.0.20.0000.0509.69
5.0.10.0070.0439.69
5.0.00.0000.0609.69
4.4.90.0000.0379.69
4.4.80.0030.0309.69
4.4.70.0000.0339.69
4.4.60.0070.0309.69
4.4.50.0070.0279.69
4.4.40.0000.0479.69
4.4.30.0000.0279.69
4.4.20.0000.0309.69
4.4.10.0000.0339.69
4.4.00.0070.0539.69
4.3.110.0030.0379.69
4.3.100.0030.0379.69
4.3.90.0000.0379.69
4.3.80.0000.0379.69
4.3.70.0000.0179.69
4.3.60.0070.0279.69
4.3.50.0070.0209.69
4.3.40.0070.0479.69
4.3.30.0070.0309.69
4.3.20.0000.0309.69
4.3.10.0000.0409.69
4.3.00.0030.0309.69

preferences:
47.51 ms | 401 KiB | 5 Q