3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Connection { function prepare($statement); } class MyPDO { public function prepare($statement, $options = null) { print("MyPDO::prepare()\n"); } } class PDOConnection extends MyPDO implements Connection { }

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.0110.00718.84
8.3.30.0110.00718.84
8.3.20.0080.00020.14
8.3.10.0030.00520.14
8.3.00.0070.00318.88
8.2.170.0100.00322.96
8.2.160.0100.00320.23
8.2.150.0050.00224.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00822.24
8.2.110.0040.00422.04
8.2.100.0040.00919.82
8.2.90.0080.00019.22
8.2.80.0000.00817.97
8.2.70.0050.00317.50
8.2.60.0040.00417.80
8.2.50.0000.00818.07
8.2.40.0000.00818.03
8.2.30.0040.00419.30
8.2.20.0050.00317.65
8.2.10.0040.00417.85
8.2.00.0000.00717.65
8.1.270.0040.00423.87
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0040.00422.20
8.1.230.0040.00719.21
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0090.00317.10
8.1.190.0080.00017.22
8.1.180.0040.00418.10
8.1.170.0090.00018.56
8.1.160.0000.00722.02
8.1.150.0080.00018.80
8.1.140.0040.00417.45
8.1.130.0000.00817.63
8.1.120.0040.00417.38
8.1.110.0000.00817.39
8.1.100.0050.00217.29
8.1.90.0050.00317.27
8.1.80.0070.00017.25
8.1.70.0070.00017.34
8.1.60.0030.00517.41
8.1.50.0050.00217.45
8.1.40.0000.00817.34
8.1.30.0040.00417.56
8.1.20.0080.00017.51
8.1.10.0000.00717.27
8.1.00.0000.00717.34
8.0.300.0040.00418.77
8.0.290.0080.00016.63
8.0.280.0040.00418.38
8.0.270.0030.00317.29
8.0.260.0030.00517.19
8.0.250.0050.00316.77
8.0.240.0030.00316.90
8.0.230.0030.00316.89
8.0.220.0000.00716.82
8.0.210.0040.00416.69
8.0.200.0030.00316.72
8.0.190.0000.00816.81
8.0.180.0000.00716.85
8.0.170.0040.00416.72
8.0.160.0000.00716.73
8.0.150.0080.00016.80
8.0.140.0040.00416.76
8.0.130.0030.00313.24
8.0.120.0040.00416.73
8.0.110.0050.00216.85
8.0.100.0050.00316.80
8.0.90.0040.00416.82
8.0.80.0030.01116.81
8.0.70.0080.00016.67
8.0.60.0000.00716.77
8.0.50.0030.00316.61
8.0.30.0090.01116.90
8.0.20.0080.01217.40
8.0.10.0040.00416.98
8.0.00.0130.01216.63
7.4.330.0060.00015.03
7.4.320.0030.00316.44
7.4.300.0030.00316.43
7.4.290.0030.00516.41
7.4.280.0040.00416.33
7.4.270.0040.00416.49
7.4.260.0030.00616.46
7.4.250.0040.00416.47
7.4.240.0020.00516.47
7.4.230.0030.00316.32
7.4.220.0000.01716.51
7.4.210.0070.00716.62
7.4.200.0040.00416.32
7.4.160.0160.00016.43
7.4.150.0150.00417.40
7.4.140.0080.01017.86
7.4.130.0110.00516.45
7.4.120.0120.00516.30
7.4.110.0100.00716.57
7.4.100.0060.01016.48
7.4.90.0100.00716.23
7.4.80.0070.01016.59
7.4.70.0150.00016.53
7.4.60.0120.00616.49
7.4.50.0030.00516.63
7.4.40.0050.01216.40
7.4.30.0100.00616.36
7.4.00.0090.00614.64
7.3.330.0000.00513.03
7.3.320.0050.00013.11
7.3.310.0030.00516.26
7.3.300.0030.00316.10
7.3.290.0080.00816.23
7.3.280.0130.00616.22
7.3.270.0110.00517.40
7.3.260.0090.00916.14
7.3.250.0060.01016.43
7.3.240.0110.00516.23
7.3.230.0100.00716.52
7.3.210.0100.00716.46
7.3.200.0140.01119.39
7.3.190.0090.01316.48
7.3.180.0160.01516.25
7.3.170.0160.00016.45
7.3.160.0090.00616.49
7.3.10.0060.00816.68
7.3.00.0070.00716.51
7.2.330.0090.01216.41
7.2.320.0030.01216.61
7.2.310.0120.00916.32
7.2.300.0090.01216.45
7.2.290.0140.00716.45
7.2.130.0070.00716.70
7.2.120.0060.01016.87
7.2.110.0000.00916.76
7.2.100.0100.00716.64
7.2.90.0140.00016.71
7.2.80.0130.00316.77
7.2.70.0030.01016.61
7.2.60.0000.01416.43
7.2.50.0030.00616.86
7.2.40.0000.01116.44
7.2.30.0030.01016.80
7.2.20.0080.00416.64
7.2.10.0000.01416.97
7.2.00.0050.00917.94
7.1.250.0030.01015.63
7.1.100.0080.00318.08
7.1.70.0040.00417.11
7.1.60.0080.00819.32
7.1.50.0070.00316.78
7.1.00.0070.07322.25
7.0.200.0040.00416.72
7.0.140.0000.07022.11
7.0.60.0070.03719.75
7.0.50.0070.08317.72
7.0.40.0070.07320.14
7.0.30.0600.06320.34
7.0.20.0200.05320.23
7.0.10.0130.04320.15
7.0.00.0030.05020.07
5.6.280.0000.07721.10
5.6.210.0130.08020.51
5.6.200.0030.04018.19
5.6.190.0070.08320.61
5.6.180.0570.07020.46
5.6.170.0370.07020.52
5.6.160.0130.03020.55
5.6.150.0100.08018.14
5.6.140.0030.04018.28
5.6.130.0170.06718.28
5.6.120.0000.04320.93
5.6.110.0130.05721.12
5.6.100.0000.04320.96
5.6.90.0100.04320.97
5.6.80.0100.07720.39
5.5.350.0200.07320.41
5.5.340.0000.06018.00
5.5.330.0000.08720.27
5.5.320.0430.06720.36
5.5.310.0270.07720.30
5.5.300.0100.07017.95
5.5.290.0030.07017.93
5.5.280.0100.07320.81
5.5.270.0100.08020.86
5.5.260.0170.06720.75
5.5.250.0030.09020.58
5.5.240.0200.07020.18
5.4.450.0070.06319.50
5.4.440.0430.05319.39
5.4.430.0400.05719.38
5.4.420.0430.05319.58
5.4.410.0370.06319.34
5.4.400.0570.04719.15
5.4.390.0330.03719.25
5.4.380.0470.04718.50
5.4.370.0330.06018.59
5.4.360.0370.06718.62
5.4.350.0370.05018.79
5.4.340.0430.05018.62
5.4.320.0060.04012.50
5.4.310.0080.04012.50
5.4.300.0070.04112.50
5.4.290.0080.03912.50
5.4.280.0060.03512.39
5.4.270.0040.03712.39
5.4.260.0040.04012.39
5.4.250.0110.03912.39
5.4.240.0070.04512.39
5.4.230.0040.03912.39
5.4.220.0040.03712.38
5.4.210.0050.03912.39
5.4.200.0070.03512.38
5.4.190.0070.03412.38
5.4.180.0060.03912.38
5.4.170.0060.03912.39
5.4.160.0040.04212.39
5.4.150.0050.04212.39
5.4.140.0110.03712.07
5.4.130.0100.03612.05
5.4.120.0070.04412.02
5.4.110.0060.03812.01
5.4.100.0070.03812.02
5.4.90.0040.04212.01
5.4.80.0060.03812.02
5.4.70.0040.03512.01
5.4.60.0040.03512.01
5.4.50.0070.04412.01
5.4.40.0090.03612.00
5.4.30.0060.04012.00
5.4.20.0080.03711.99
5.4.10.0080.03912.00
5.4.00.0050.03511.48
5.3.290.0080.04312.80
5.3.280.0080.04312.71
5.3.270.0070.04012.72
5.3.260.0080.04512.72
5.3.250.0060.04012.71
5.3.240.0050.03812.72
5.3.230.0090.03912.71
5.3.220.0050.04612.68
5.3.210.0070.04812.68
5.3.200.0090.04112.68
5.3.190.0100.04012.68
5.3.180.0110.04012.67
5.3.170.0070.03712.67
5.3.160.0060.03612.67
5.3.150.0120.04112.67
5.3.140.0110.03712.66
5.3.130.0090.04312.66
5.3.120.0090.03612.66
5.3.110.0060.04012.65
5.3.100.0090.04012.12
5.3.90.0050.04012.11
5.3.80.0080.03612.09
5.3.70.0050.04712.09
5.3.60.0040.03712.08
5.3.50.0020.04112.02
5.3.40.0090.03912.02
5.3.30.0070.03811.98
5.3.20.0060.03911.77
5.3.10.0070.04011.73
5.3.00.0040.04011.72
5.2.170.0060.0309.22
5.2.160.0040.0339.22
5.2.150.0050.0369.22
5.2.140.0060.0319.22
5.2.130.0050.0369.18
5.2.120.0090.0279.18
5.2.110.0020.0409.18
5.2.100.0050.0309.19
5.2.90.0070.0399.18
5.2.80.0050.0329.18
5.2.70.0030.0329.17
5.2.60.0050.0359.13
5.2.50.0040.0339.10
5.2.40.0040.0319.07
5.2.30.0060.0299.05
5.2.20.0030.0299.04
5.2.10.0040.0318.94
5.2.00.0070.0348.80
5.1.60.0040.0258.09
5.1.50.0040.0268.09
5.1.40.0050.0278.07
5.1.30.0090.0218.41
5.1.20.0070.0308.44
5.1.10.0040.0278.17
5.1.00.0030.0308.17
5.0.50.0070.0276.64
5.0.40.0060.0256.50
5.0.30.0050.0306.31
5.0.20.0020.0206.28
5.0.10.0050.0256.26
5.0.00.0040.0386.25
4.4.90.0030.0194.78
4.4.80.0030.0244.75
4.4.70.0040.0184.75
4.4.60.0020.0154.76
4.4.50.0050.0254.77
4.4.40.0020.0324.71
4.4.30.0010.0174.76
4.4.20.0060.0214.85
4.4.10.0050.0224.85
4.4.00.0050.0254.76
4.3.110.0050.0194.67
4.3.100.0040.0174.67
4.3.90.0060.0214.63
4.3.80.0050.0284.58
4.3.70.0020.0204.63
4.3.60.0020.0194.63
4.3.50.0070.0164.63
4.3.40.0010.0294.54
4.3.30.0010.0173.28
4.3.20.0040.0143.26
4.3.10.0020.0203.22
4.3.00.0030.0236.64

preferences:
39.6 ms | 400 KiB | 5 Q