3v4l.org

run code in 300+ PHP versions simultaneously
<?php use PDO; interface Connection { function prepare($statement); } class PDOConnection extends PDO implements Connection { public function __construct($dsn, $user = null, $password = null, array $options = null) { parent::__construct($dsn, $user, $password, $options); } } new PDO('sqlite::memory:');

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.40.0090.00618.57
8.3.30.0140.00318.96
8.3.20.0040.00420.21
8.3.10.0080.00020.43
8.3.00.0050.00319.13
8.2.170.0100.00722.96
8.2.160.0070.00720.25
8.2.150.0000.00824.18
8.2.140.0040.00824.66
8.2.130.0080.00026.16
8.2.120.0030.00622.22
8.2.110.0050.00320.43
8.2.100.0110.00018.03
8.2.90.0000.00819.23
8.2.80.0060.00317.97
8.2.70.0050.00517.38
8.2.60.0040.00417.80
8.2.50.0060.00318.07
8.2.40.0040.00418.03
8.2.30.0070.00019.50
8.2.20.0070.00017.73
8.2.10.0030.00517.89
8.2.00.0000.00917.58
8.1.270.0040.00423.96
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0060.00323.96
8.1.230.0090.00319.18
8.1.220.0030.00517.74
8.1.210.0080.00018.77
8.1.200.0040.00417.23
8.1.190.0000.00817.11
8.1.180.0000.00918.10
8.1.170.0000.00818.33
8.1.160.0000.00722.02
8.1.150.0030.00618.84
8.1.140.0070.00017.48
8.1.130.0030.00317.77
8.1.120.0040.00417.41
8.1.110.0000.00817.34
8.1.100.0000.00717.41
8.1.90.0000.00717.29
8.1.80.0050.00317.29
8.1.70.0000.00717.34
8.1.60.0080.00017.51
8.1.50.0000.00817.37
8.1.40.0040.00417.35
8.1.30.0080.00017.58
8.1.20.0040.00417.62
8.1.10.0030.00517.26
8.1.00.0050.00317.21
8.0.300.0070.00018.77
8.0.290.0080.00016.75
8.0.280.0030.00318.34
8.0.270.0030.00317.20
8.0.260.0030.00317.20
8.0.250.0040.00416.86
8.0.240.0000.00616.86
8.0.230.0000.00716.90
8.0.220.0000.00716.91
8.0.210.0070.00016.91
8.0.200.0000.00716.97
8.0.190.0000.00816.93
8.0.180.0040.00416.88
8.0.170.0050.00316.96
8.0.160.0070.00016.79
8.0.150.0040.00416.86
8.0.140.0030.00516.85
8.0.130.0070.00013.29
8.0.120.0030.00516.85
8.0.110.0040.00416.89
8.0.100.0000.00716.70
8.0.90.0040.00416.93
8.0.80.0120.00316.91
8.0.70.0070.00016.81
8.0.60.0040.00416.79
8.0.50.0040.00417.00
8.0.30.0100.00917.15
8.0.20.0110.01317.40
8.0.10.0070.00017.06
8.0.00.0070.01216.69
7.4.330.0050.00015.61
7.4.320.0000.00616.91
7.4.300.0000.00617.06
7.4.290.0070.00017.00
7.4.280.0040.00417.01
7.4.270.0030.00517.10
7.4.260.0040.00617.00
7.4.250.0070.00017.04
7.4.240.0030.00517.04
7.4.230.0000.00817.04
7.4.220.0070.01117.10
7.4.210.0080.00816.84
7.4.200.0070.00017.07
7.4.160.0130.00317.04
7.4.150.0130.00617.40
7.4.140.0160.00517.86
7.4.130.0140.00317.07
7.4.120.0040.01217.04
7.4.110.0200.00317.05
7.4.100.0100.00617.01
7.4.90.0100.00716.86
7.4.80.0100.00716.75
7.4.70.0100.00716.96
7.4.60.0030.01716.90
7.4.50.0040.00417.01
7.4.40.0060.01016.82
7.4.30.0100.00716.73
7.4.10.0060.00915.34
7.4.00.0080.00815.36
7.3.330.0030.00313.56
7.3.320.0030.00313.57
7.3.310.0070.00016.77
7.3.300.0040.00416.63
7.3.290.0030.01316.76
7.3.280.0050.01016.68
7.3.270.0130.00717.40
7.3.260.0090.00916.97
7.3.250.0120.00917.03
7.3.240.0090.00917.01
7.3.230.0060.01116.89
7.3.210.0060.01217.11
7.3.200.0140.00319.39
7.3.190.0150.00316.76
7.3.180.0100.00616.73
7.3.170.0090.00817.03
7.3.160.0100.01316.72
7.3.130.0060.01215.57
7.3.120.0120.00815.41
7.3.110.0120.00315.16
7.3.100.0090.00914.89
7.3.90.0140.00015.19
7.3.80.0080.00415.57
7.3.70.0000.01315.40
7.3.60.0000.01615.43
7.3.50.0040.01215.18
7.3.40.0060.01015.01
7.3.30.0090.00615.25
7.3.20.0130.00317.30
7.3.10.0000.01317.33
7.3.00.0130.00017.19
7.2.330.0140.01017.18
7.2.320.0000.01816.95
7.2.310.0060.01116.98
7.2.300.0120.00816.80
7.2.290.0100.01317.05
7.2.260.0150.00315.60
7.2.250.0100.01015.37
7.2.240.0000.01315.33
7.2.230.0040.01415.33
7.2.220.0000.02015.41
7.2.210.0000.01715.41
7.2.200.0080.00815.49
7.2.190.0030.01515.40
7.2.180.0080.00715.55
7.2.170.0070.00715.36
7.2.160.0090.00915.13
7.2.150.0030.01617.30
7.2.140.0000.02017.31
7.2.130.0000.01217.10
7.2.120.0030.01417.02
7.2.110.0040.01117.25
7.2.100.0060.01117.36
7.2.90.0040.01117.04
7.2.80.0130.00317.32
7.2.70.0030.01317.30
7.2.60.0120.00617.38
7.2.50.0060.00317.39
7.2.40.0030.01217.29
7.2.30.0040.01117.16
7.2.20.0080.00817.49
7.2.10.0060.00917.15
7.2.00.0020.01018.52
7.1.330.0060.01116.14
7.1.320.0030.01215.84
7.1.310.0070.00716.17
7.1.300.0030.01016.21
7.1.290.0050.00915.87
7.1.280.0060.00616.07
7.1.270.0070.00715.90
7.1.260.0070.01016.18
7.1.250.0040.01016.14
7.1.240.0110.00416.21
7.1.230.0100.00715.93
7.1.220.0000.01715.93
7.1.210.0070.00715.93
7.1.200.0040.01316.01
7.1.190.0110.00716.16
7.1.180.0090.00616.10
7.1.170.0140.00315.95
7.1.160.0090.00616.34
7.1.150.0030.01016.37
7.1.140.0110.00416.17
7.1.130.0030.00916.11
7.1.120.0060.00316.05
7.1.110.0050.01016.25
7.1.100.0050.00517.23
7.1.90.0110.00416.20
7.1.80.0070.01115.88
7.1.70.0030.00816.66
7.1.60.0050.01217.80
7.1.50.0130.00925.72
7.1.40.0090.00915.89
7.1.30.0040.01216.00
7.1.20.0090.00616.16
7.1.10.0070.01016.11
7.1.00.0050.04219.44
7.0.330.0040.01215.83
7.0.320.0100.00615.73
7.0.310.0070.01015.70
7.0.300.0090.00415.81
7.0.290.0000.00915.92
7.0.280.0110.00415.96
7.0.270.0090.00615.79
7.0.260.0070.00715.93
7.0.250.0070.01015.70
7.0.240.0000.00915.85
7.0.230.0150.00015.69
7.0.220.0110.00716.01
7.0.210.0120.00315.63
7.0.200.0060.00516.19
7.0.190.0030.01515.99
7.0.180.0090.00615.78
7.0.170.0070.01015.81
7.0.160.0100.00715.67
7.0.150.0070.00715.79
7.0.140.0030.04318.98
7.0.130.0080.00315.91
7.0.120.0040.01215.83
7.0.110.0080.00415.53
7.0.100.0030.00915.91
7.0.90.0000.01515.85
7.0.80.0060.01015.87
7.0.70.0030.00915.57
7.0.60.0050.02517.76
7.0.50.0030.03416.94
7.0.40.0050.02716.97
7.0.30.0200.04317.02
7.0.20.0220.03817.05
7.0.10.0060.04717.00
7.0.00.0060.03316.91
5.6.400.0030.00914.83
5.6.390.0060.00914.72
5.6.380.0050.00814.86
5.6.370.0060.01014.78
5.6.360.0090.00614.88
5.6.350.0180.00014.91
5.6.340.0090.00614.75
5.6.330.0030.01314.76
5.6.320.0030.01614.53
5.6.310.0090.00814.89
5.6.300.0090.00614.71
5.6.290.0070.00714.48
5.6.280.0040.04217.96
5.6.270.0080.00815.03
5.6.260.0100.00714.71
5.6.250.0060.00614.46
5.6.240.0080.00814.65
5.6.230.0130.00314.78
5.6.220.0070.00414.72
5.6.210.0080.02517.72
5.6.200.0070.03416.58
5.6.190.0060.03117.72
5.6.180.0210.03117.76
5.6.170.0230.04117.49
5.6.160.0080.04617.70
5.6.150.0100.04016.50
5.6.140.0100.03916.59
5.6.130.0110.03916.42
5.6.120.0140.02617.87
5.6.110.0080.04717.88
5.6.100.0030.03818.01
5.6.90.0000.02717.98
5.6.80.0080.02217.43
5.6.70.0040.01114.79
5.6.60.0000.01414.80
5.6.50.0090.00514.54
5.6.40.0070.00514.32
5.6.30.0090.00614.59
5.6.20.0040.01114.77
5.6.10.0060.00914.59
5.6.00.0030.01514.42
5.5.380.0070.01014.84
5.5.370.0060.01214.57
5.5.360.0030.01214.75
5.5.350.0130.04217.42
5.5.340.0100.03316.41
5.5.330.0050.04317.66
5.5.320.0240.04417.33
5.5.310.0190.03717.63
5.5.300.0060.04316.20
5.5.290.0070.02416.36
5.5.280.0040.03717.59
5.5.270.0100.02917.58
5.5.260.0020.04717.98
5.5.250.0030.03317.57
5.5.240.0090.04317.54
5.5.230.0100.01014.24
5.5.220.0070.01114.84
5.5.210.0090.00614.62
5.5.200.0070.00714.50
5.5.190.0030.01414.57
5.5.180.0090.00414.61
5.5.170.0030.01414.60
5.5.160.0030.01514.49
5.5.150.0100.00714.06
5.5.140.0000.01614.65
5.5.130.0000.01514.59
5.5.120.0110.00614.59
5.5.110.0070.00714.30
5.5.100.0060.01014.59
5.5.90.0000.01514.55
5.5.80.0100.00314.62
5.5.70.0090.00614.41
5.5.60.0080.00814.61
5.5.50.0070.00714.37
5.5.40.0080.00813.96
5.5.30.0000.01414.55
5.5.20.0070.00714.46
5.5.10.0050.01414.43
5.5.00.0080.00814.13
5.4.450.0130.02915.53
5.4.440.0150.03015.49
5.4.430.0080.03215.37
5.4.420.0140.02915.21
5.4.410.0080.03015.03
5.4.400.0200.03015.11
5.4.390.0200.02815.23
5.4.380.0230.02715.02
5.4.370.0180.03114.98
5.4.360.0170.03414.97
5.4.350.0180.03214.94
5.4.340.0200.03214.90
5.4.330.0030.00710.98
5.4.320.0060.02111.92
5.4.310.0020.02811.97
5.4.300.0030.02711.90
5.4.290.0080.02111.89
5.4.280.0080.02111.87
5.4.270.0070.02111.81
5.4.260.0050.02411.88
5.4.250.0040.02211.94
5.4.240.0100.02111.81
5.4.230.0040.02311.80
5.4.220.0060.02111.87
5.4.210.0060.02011.62
5.4.200.0070.02211.71
5.4.190.0050.02311.61
5.4.180.0070.02011.82
5.4.170.0070.02311.87
5.4.160.0040.02211.86
5.4.150.0060.02111.97
5.4.140.0050.02311.51
5.4.130.0070.02111.60
5.4.120.0040.02511.70
5.4.110.0050.02111.73
5.4.100.0060.02011.67
5.4.90.0050.02111.57
5.4.80.0050.02211.53
5.4.70.0030.02111.71
5.4.60.0050.02111.73
5.4.50.0060.02011.47
5.4.40.0060.01911.71
5.4.30.0060.01811.69
5.4.20.0060.02111.63
5.4.10.0040.02211.59
5.4.00.0060.02111.33
5.3.290.0060.03912.82
5.3.280.0080.03512.74
5.3.270.0050.03912.75
5.3.260.0030.05412.75
5.3.250.0090.03512.76
5.3.240.0060.04212.75
5.3.230.0070.03912.74
5.3.220.0120.03912.71
5.3.210.0100.03912.72
5.3.200.0040.04612.71
5.3.190.0020.04012.71
5.3.180.0070.03412.71
5.3.170.0070.03512.71
5.3.160.0060.03612.71
5.3.150.0070.04712.71
5.3.140.0090.04112.70
5.3.130.0070.03812.70
5.3.120.0040.04112.70
5.3.110.0080.03812.70
5.3.100.0030.04012.19
5.3.90.0050.03812.17
5.3.80.0080.03312.16
5.3.70.0040.04412.16
5.3.60.0070.04312.14
5.3.50.0110.04112.09
5.3.40.0080.03912.09
5.3.30.0070.04612.05
5.3.20.0030.03811.83
5.3.10.0110.04011.79
5.3.00.0060.03711.79
5.2.170.0030.0459.18
5.2.160.0080.0319.18
5.2.150.0070.0339.18
5.2.140.0040.0449.18
5.2.130.0070.0329.14
5.2.120.0080.0309.14
5.2.110.0090.0269.15
5.2.100.0070.0269.14
5.2.90.0060.0279.14
5.2.80.0030.0349.14
5.2.70.0050.0319.14
5.2.60.0070.0299.09
5.2.50.0030.0329.05
5.2.40.0040.0299.03
5.2.30.0050.0309.02
5.2.20.0050.0289.00
5.2.10.0070.0338.93
5.2.00.0050.0308.78
5.1.60.0040.0248.06
5.1.50.0040.0258.06
5.1.40.0030.0258.05
5.1.30.0020.0288.40
5.1.20.0080.0238.41
5.1.10.0040.0268.14
5.1.00.0030.0278.14
5.0.50.0030.0216.62
5.0.40.0020.0216.48
5.0.30.0070.0286.29
5.0.20.0040.0196.26
5.0.10.0050.0186.24
5.0.00.0030.0326.23
4.4.90.0060.0124.77
4.4.80.0030.0164.75
4.4.70.0020.0174.75
4.4.60.0050.0144.75
4.4.50.0040.0144.77
4.4.40.0040.0244.71
4.4.30.0040.0224.76
4.4.20.0020.0164.85
4.4.10.0030.0154.85
4.4.00.0020.0254.76
4.3.110.0000.0184.67
4.3.100.0020.0234.66
4.3.90.0040.0144.64
4.3.80.0030.0244.59
4.3.70.0020.0204.63
4.3.60.0030.0144.63
4.3.50.0040.0144.63
4.3.40.0040.0224.53
4.3.30.0000.0183.28
4.3.20.0020.0163.27
4.3.10.0040.0223.21
4.3.00.0070.0206.64

preferences:
35.9 ms | 400 KiB | 5 Q