3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface xi { public function bindColumn ($column ,&$param ); public function bindParam ($parameter ,&$variable ); public function bindValue ($parameter ,$value); public function closeCursor (); public function columnCount (); public function debugDumpParams (); public function errorCode (); public function errorInfo (); public function execute ($bound_input_params = NULL ); public function fetch ($how = NULL, $orientation = NULL, $offset = NULL); public function fetchAll ( ); public function fetchColumn (); public function fetchObject (); public function getAttribute ($attribute ); public function getColumnMeta ($column ); public function nextRowset (); public function rowCount (); public function setAttribute ($attribute ,$value ); public function setFetchMode ($mode ); } class xc extends PDOStatement implements xi { public function bindColumn ($column ,&$param ){} public function bindParam ($parameter ,&$variable ){} public function bindValue ($parameter ,$value){} public function closeCursor (){} public function columnCount (){} public function debugDumpParams (){} public function errorCode (){} public function errorInfo (){} public function execute ($bound_input_params = NULL ){} public function fetch ($how = NULL, $orientation = NULL, $offset = NULL){} public function fetchAll ( ){} public function fetchColumn (){} public function fetchObject (){} public function getAttribute ($attribute ){} public function getColumnMeta ($column ){} public function nextRowset (){} public function rowCount (){} public function setAttribute ($attribute ,$value ){} public function setFetchMode ($mode ){} } function foo(xi $x) { } foo(new xc);

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.0100.01018.68
8.3.50.0150.00721.98
8.3.40.0150.00018.59
8.3.30.0120.00320.26
8.3.20.0040.00420.16
8.3.10.0040.00422.14
8.3.00.0040.00422.57
8.2.180.0170.00416.59
8.2.170.0110.00422.96
8.2.160.0150.00020.47
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0110.00426.16
8.2.120.0050.00319.53
8.2.110.0060.00322.25
8.2.100.0080.00419.38
8.2.90.0060.00319.09
8.2.80.0000.00819.31
8.2.70.0000.00917.50
8.2.60.0000.00817.80
8.2.50.0000.00918.07
8.2.40.0060.00318.22
8.2.30.0040.00418.04
8.2.20.0000.00717.65
8.2.10.0040.00417.73
8.2.00.0050.00517.66
8.1.280.0150.00325.92
8.1.270.0040.00424.66
8.1.260.0000.00726.35
8.1.250.0050.00328.09
8.1.240.0040.00423.84
8.1.230.0110.00019.14
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0000.00917.23
8.1.190.0030.00517.39
8.1.180.0000.00818.10
8.1.170.0030.00518.55
8.1.160.0040.00422.15
8.1.150.0040.00418.54
8.1.140.0040.00417.30
8.1.130.0000.00717.75
8.1.120.0080.00317.33
8.1.110.0050.00217.48
8.1.100.0030.00517.45
8.1.90.0040.00417.32
8.1.80.0000.00717.48
8.1.70.0000.00717.29
8.1.60.0040.00417.52
8.1.50.0030.00617.48
8.1.40.0040.00417.39
8.1.30.0000.00717.52
8.1.20.0030.00617.55
8.1.10.0070.00317.44
8.1.00.0040.00417.34
8.0.300.0000.00718.77
8.0.290.0000.00717.18
8.0.280.0030.00318.44
8.0.270.0030.00317.18
8.0.260.0050.00316.90
8.0.250.0000.00716.97
8.0.240.0050.00316.97
8.0.230.0070.00016.89
8.0.220.0060.00316.91
8.0.210.0030.00316.92
8.0.200.0060.00316.99
8.0.190.0000.00717.05
8.0.180.0030.00516.88
8.0.170.0000.00816.95
8.0.160.0040.00417.04
8.0.150.0040.00416.84
8.0.140.0050.00316.90
8.0.130.0050.00013.34
8.0.120.0030.00516.80
8.0.110.0030.00516.98
8.0.100.0070.00016.82
8.0.90.0040.00416.79
8.0.80.0200.00016.90
8.0.70.0040.00416.95
8.0.60.0030.00516.84
8.0.50.0040.00416.83
8.0.30.0110.00917.18
8.0.20.0070.01017.40
8.0.10.0040.00416.92
8.0.00.0120.00916.78
7.4.330.0000.00515.00
7.4.320.0050.00216.43
7.4.300.0060.00016.50
7.4.290.0000.00816.47
7.4.280.0060.00316.52
7.4.270.0000.00716.46
7.4.260.0070.00016.46
7.4.250.0000.00716.45
7.4.240.0020.00516.60
7.4.230.0070.00016.68
7.4.220.0100.01316.59
7.4.210.0060.01016.48
7.4.200.0050.00216.56
7.4.190.0030.00316.70
7.4.160.0120.00616.74
7.4.150.0100.01017.40
7.4.140.0070.01117.86
7.4.130.0110.00616.48
7.4.120.0120.01016.45
7.4.110.0030.01316.62
7.4.100.0110.00916.50
7.4.90.0100.00616.41
7.4.80.0130.01019.39
7.4.70.0100.00616.48
7.4.60.0090.00916.37
7.4.50.0050.00016.59
7.4.40.0100.00322.77
7.4.30.0100.01316.24
7.4.00.0090.00614.79
7.3.330.0050.00013.35
7.3.320.0050.00013.18
7.3.310.0070.00016.28
7.3.300.0040.00416.29
7.3.290.0100.00716.33
7.3.280.0050.01216.34
7.3.270.0100.00717.40
7.3.260.0070.01416.45
7.3.250.0050.01316.44
7.3.240.0110.01116.36
7.3.230.0090.00916.39
7.3.210.0080.00816.51
7.3.200.0070.01119.39
7.3.190.0120.01016.42
7.3.180.0080.00716.33
7.3.170.0100.00616.52
7.3.160.0130.00316.52
7.3.120.0050.01314.56
7.3.110.0120.00614.88
7.3.100.0040.01114.55
7.3.90.0070.00714.84
7.3.80.0000.01114.85
7.3.70.0070.00714.85
7.3.60.0090.00314.86
7.3.50.0080.00414.76
7.3.40.0040.01114.57
7.3.30.0070.00714.62
7.3.20.0030.01016.63
7.3.10.0070.01016.62
7.3.00.0030.00616.38
7.2.330.0080.00816.62
7.2.320.0030.01516.60
7.2.310.0090.00916.74
7.2.300.0060.00916.65
7.2.290.0090.00916.67
7.2.250.0070.01314.66
7.2.240.0070.01114.74
7.2.230.0030.01314.86
7.2.220.0030.00914.62
7.2.210.0070.00714.95
7.2.200.0040.01114.95
7.2.190.0040.01214.73
7.2.180.0080.00814.95
7.2.170.0050.00614.88
7.2.60.0070.00716.44
7.2.00.0070.01019.44
7.1.330.0100.00315.68
7.1.320.0040.00715.84
7.1.310.0120.00015.64
7.1.300.0060.00315.66
7.1.290.0070.00715.52
7.1.280.0030.00915.60
7.1.270.0040.00815.63
7.1.260.0070.00615.59
7.1.200.0000.01415.79
7.1.70.0000.00716.91
7.1.60.0080.00617.15
7.1.50.0320.01134.73
7.1.00.0000.03722.33
7.0.200.0060.00916.58
7.0.140.0000.08022.15
7.0.60.0070.04719.97
7.0.50.0030.06017.89
7.0.40.0070.04020.13
7.0.30.0200.05720.24
7.0.20.0400.07020.09
7.0.10.0170.05320.19
7.0.00.0030.09020.16
5.6.280.0070.07021.10
5.6.210.0030.04720.57
5.6.200.0100.07018.19
5.6.190.0200.07720.48
5.6.180.0270.08320.42
5.6.170.0300.08020.54
5.6.160.0070.04020.71
5.6.150.0130.03318.18
5.6.140.0100.08318.21
5.6.130.0030.06318.18
5.6.120.0070.06021.16
5.6.110.0070.04321.04
5.6.100.0030.06321.14
5.6.90.0100.08021.05
5.6.80.0100.07020.42
5.6.70.0100.04320.55
5.5.350.0000.08320.32
5.5.340.0030.05718.07
5.5.330.0100.05720.27
5.5.320.0200.08720.33
5.5.310.0230.06020.37
5.5.300.0000.04317.95
5.5.290.0070.03717.99
5.5.280.0000.05320.80
5.5.270.0100.08320.91
5.5.260.0170.07320.91
5.5.250.0100.08020.72
5.5.240.0100.07020.29
5.4.450.0430.07319.39
5.4.440.0730.06019.58
5.4.430.0700.05319.44
5.4.420.0630.05719.45
5.4.410.0630.06719.21
5.4.400.0370.07318.54
5.4.390.0470.07318.80
5.4.380.0170.05718.61
5.4.370.0100.05718.60
5.4.360.0100.05318.60
5.4.350.0090.04712.05
5.4.340.0080.06512.04
5.4.320.0070.03512.53
5.4.310.0070.03712.53
5.4.300.0110.03312.53
5.4.290.0080.03612.53
5.4.280.0070.03512.42
5.4.270.0090.03412.42
5.4.260.0080.04112.43
5.4.250.0230.04318.80
5.4.240.0030.05718.76
5.4.230.0100.05018.88
5.4.220.0200.04318.92
5.4.210.0170.05319.09
5.4.200.0100.05018.99
5.4.190.0070.05019.09
5.4.180.0070.05018.76
5.4.170.0100.05319.01
5.4.160.0130.04318.93
5.4.150.0030.06019.05
5.4.140.0070.05316.45
5.4.130.0030.05016.44
5.4.120.0130.04316.46
5.4.110.0030.07316.54
5.4.100.0070.05316.59
5.4.90.0070.04716.59
5.4.80.0230.03316.42
5.4.70.0030.05016.64
5.4.60.0030.05316.49
5.4.50.0030.05316.38
5.4.40.0030.05016.56
5.4.30.0100.04716.40
5.4.20.0070.04716.52
5.4.10.0170.05316.39
5.4.00.0100.05315.89
5.3.290.0070.03912.80
5.3.280.0170.04314.71
5.3.270.0070.05014.73
5.3.260.0100.05014.64
5.3.250.0030.05314.80
5.3.240.0130.05314.66
5.3.230.0070.05014.71
5.3.220.0070.05014.61
5.3.210.0070.05314.70
5.3.200.0030.05314.63
5.3.190.0070.07314.69
5.3.180.0100.04714.59
5.3.170.0170.04014.57
5.3.160.0100.04314.74
5.3.150.0100.05014.64
5.3.140.0030.05314.68
5.3.130.0070.05014.57
5.3.120.0170.04014.59
5.3.110.0030.05314.63
5.3.100.0100.07014.21
5.3.90.0200.04014.27
5.3.80.0100.06014.23
5.3.70.0100.04714.25
5.3.60.0070.05014.11
5.3.50.0070.04714.06
5.3.40.0070.05014.07
5.3.30.0030.05014.02
5.3.20.0130.04313.79
5.3.10.0030.05013.77
5.3.00.0170.04013.69
5.2.170.0100.04311.35
5.2.160.0000.04311.27
5.2.150.0070.04011.19
5.2.140.0070.04011.27
5.2.130.0100.03711.13
5.2.120.0130.03011.23
5.2.110.0070.03711.05
5.2.100.0070.03711.22
5.2.90.0000.05711.13
5.2.80.0070.04011.20
5.2.70.0070.05711.35
5.2.60.0130.03310.93
5.2.50.0130.04011.15
5.2.40.0000.05011.22
5.2.30.0030.05011.18
5.2.20.0070.04011.08
5.2.10.0100.03310.97
5.2.00.0170.04310.84
5.1.60.0030.04710.14
5.1.50.0100.03710.15
5.1.40.0100.04710.02
5.1.30.0070.03710.35
5.1.20.0030.04010.38
5.1.10.0100.03010.21
5.1.00.0070.03710.27
5.0.50.0000.0308.54
5.0.40.0070.0278.52
5.0.30.0030.0408.19
5.0.20.0000.0308.29
5.0.10.0030.0408.46
5.0.00.0100.0408.17
4.4.90.0030.0207.53
4.4.80.0100.0207.53
4.4.70.0030.0207.54
4.4.60.0030.0237.54
4.4.50.0000.0377.54
4.4.40.0070.0337.54
4.4.30.0030.0237.54
4.4.20.0070.0207.54
4.4.10.0030.0277.53
4.4.00.0030.0337.53
4.3.110.0000.0337.53
4.3.100.0000.0207.53
4.3.90.0070.0177.53
4.3.80.0070.0277.53
4.3.70.0030.0177.53
4.3.60.0030.0177.53
4.3.50.0030.0207.53
4.3.40.0030.0307.53
4.3.30.0070.0177.53
4.3.20.0000.0237.53
4.3.10.0070.0177.53
4.3.00.0170.0276.55

preferences:
42.67 ms | 400 KiB | 5 Q