3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface xi { public function fetchObject ($class_name = "stdClass" , $ctor_args = NULL); } class xc extends PDOStatement implements xi { } 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.0140.00018.54
8.3.50.0090.00621.20
8.3.40.0070.00718.58
8.3.30.0070.00720.39
8.3.20.0050.00220.11
8.3.10.0040.00422.04
8.3.00.0050.00222.45
8.2.180.0130.00916.38
8.2.170.0140.00022.96
8.2.160.0070.00720.43
8.2.150.0030.00724.18
8.2.140.0170.00324.66
8.2.130.0060.01226.16
8.2.120.0030.00619.54
8.2.110.0030.00620.93
8.2.100.0040.00817.84
8.2.90.0040.00419.23
8.2.80.0090.00017.97
8.2.70.0030.00617.38
8.2.60.0000.00817.91
8.2.50.0040.00418.10
8.2.40.0040.00420.60
8.2.30.0050.00217.91
8.2.20.0040.00417.59
8.2.10.0040.00417.50
8.2.00.0040.00817.50
8.1.280.0070.01425.92
8.1.270.0070.00024.66
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00621.11
8.1.230.0140.00017.71
8.1.220.0040.00417.74
8.1.210.0050.00518.77
8.1.200.0030.00617.23
8.1.190.0050.00317.10
8.1.180.0030.00618.10
8.1.170.0060.00318.66
8.1.160.0000.00722.00
8.1.150.0000.00718.50
8.1.140.0080.00017.39
8.1.130.0000.00717.75
8.1.120.0000.01017.41
8.1.110.0080.00017.29
8.1.100.0030.00317.39
8.1.90.0040.00417.32
8.1.80.0000.00717.29
8.1.70.0070.00017.41
8.1.60.0030.00517.51
8.1.50.0040.00417.43
8.1.40.0040.00417.40
8.1.30.0000.00817.46
8.1.20.0030.00517.59
8.1.10.0000.00817.44
8.1.00.0040.00417.39
8.0.300.0020.00518.77
8.0.290.0050.00516.63
8.0.280.0070.00018.43
8.0.270.0000.00717.14
8.0.260.0070.00016.79
8.0.250.0030.00516.93
8.0.240.0000.00816.98
8.0.230.0080.00016.98
8.0.220.0040.00716.96
8.0.210.0030.00316.86
8.0.200.0040.00416.79
8.0.190.0080.00016.97
8.0.180.0070.00016.89
8.0.170.0030.00516.82
8.0.160.0040.00416.82
8.0.150.0030.00616.77
8.0.140.0050.00316.76
8.0.130.0000.00613.25
8.0.120.0040.00416.87
8.0.110.0000.00816.79
8.0.100.0000.00717.01
8.0.90.0000.00716.98
8.0.80.0030.01216.85
8.0.70.0000.00716.88
8.0.60.0000.00716.77
8.0.50.0000.00716.90
8.0.30.0100.00916.99
8.0.20.0070.01317.40
8.0.10.0040.00416.99
8.0.00.0080.01016.63
7.4.330.0000.00515.00
7.4.320.0040.00416.45
7.4.300.0060.00016.45
7.4.290.0000.00716.46
7.4.280.0000.00716.54
7.4.270.0040.00416.46
7.4.260.0070.00016.50
7.4.250.0000.00716.27
7.4.240.0030.00316.46
7.4.230.0000.00716.52
7.4.220.0190.00616.55
7.4.210.0010.01316.44
7.4.200.0030.00316.63
7.4.190.0000.00716.71
7.4.160.0000.01616.33
7.4.150.0030.01617.40
7.4.140.0070.01617.86
7.4.130.0100.01016.53
7.4.120.0090.00816.44
7.4.110.0060.01016.36
7.4.100.0100.01016.48
7.4.90.0100.00716.32
7.4.80.0230.00019.39
7.4.70.0090.00616.66
7.4.60.0110.01116.66
7.4.50.0000.00516.34
7.4.40.0070.00422.77
7.4.30.0130.00316.48
7.4.00.0070.01115.09
7.3.330.0000.00513.07
7.3.320.0020.00312.98
7.3.310.0000.00716.11
7.3.300.0000.00716.21
7.3.290.0030.01016.26
7.3.280.0080.01216.25
7.3.270.0090.00917.40
7.3.260.0080.01216.50
7.3.250.0120.00516.31
7.3.240.0090.01216.31
7.3.230.0060.01016.52
7.3.210.0070.01016.42
7.3.200.0030.01419.39
7.3.190.0090.00916.33
7.3.180.0040.01116.21
7.3.170.0060.00916.27
7.3.160.0100.00616.33
7.3.120.0060.00915.00
7.3.00.0100.00016.67
7.2.330.0090.00916.46
7.2.320.0070.01116.73
7.2.310.0100.01316.23
7.2.300.0110.00516.54
7.2.290.0040.01216.55
7.2.130.0030.01016.68
7.2.120.0060.00316.80
7.2.110.0000.00916.72
7.2.100.0000.01216.42
7.2.90.0030.01016.63
7.2.80.0140.00616.48
7.2.70.0040.00716.58
7.2.60.0050.00816.77
7.2.50.0030.00916.84
7.2.40.0080.00316.86
7.2.30.0040.00816.91
7.2.20.0040.00816.64
7.2.10.0060.00616.71
7.2.00.0040.01116.78
7.1.250.0000.01015.70
7.1.240.0070.00315.66
7.1.230.0060.00615.65
7.1.220.0030.00715.65
7.1.210.0110.00415.53
7.1.200.0060.00615.60
7.1.190.0060.00615.66
7.1.180.0030.01015.76
7.1.170.0000.00815.81
7.1.160.0100.00315.76
7.1.150.0100.00315.70
7.1.140.0120.00015.67
7.1.130.0090.00615.39
7.1.120.0060.00615.50
7.1.110.0070.00315.63
7.1.100.0000.00915.61
7.1.90.0000.01315.61
7.1.80.0000.00815.64
7.1.70.0030.00816.41
7.1.60.0100.00817.29
7.1.50.0090.00916.35
7.1.40.0030.00915.81
7.1.30.0060.00315.28
7.1.20.0070.00715.38
7.1.10.0000.00915.65
7.1.00.0080.03519.00
7.0.330.0100.00015.14
7.0.320.0060.00615.09
7.0.310.0040.00415.09
7.0.300.0030.01015.13
7.0.290.0080.00315.21
7.0.280.0000.01115.16
7.0.270.0040.00415.06
7.0.260.0000.00714.97
7.0.250.0060.00314.98
7.0.240.0030.01015.31
7.0.230.0030.00815.15
7.0.220.0030.01015.41
7.0.210.0070.00415.51
7.0.200.0250.00814.99
7.0.190.0070.00715.20
7.0.180.0030.01315.06
7.0.170.0030.01015.32
7.0.160.0030.00614.99
7.0.150.0000.01215.21
7.0.140.0000.04418.63
7.0.130.0090.00314.98
7.0.120.0040.00715.39
7.0.110.0000.01115.34
7.0.100.0080.03917.70
7.0.90.0100.03517.51
7.0.80.0050.04317.53
7.0.70.0150.01717.48
7.0.60.0050.04317.49
7.0.50.0030.02617.70
7.0.40.0020.02816.61
7.0.30.0100.02216.62
7.0.20.0020.02516.69
7.0.10.0070.02216.71
7.0.00.0040.02416.59
5.6.380.0110.00313.84
5.6.370.0000.01014.30
5.6.360.0030.01014.17
5.6.350.0090.00314.14
5.6.340.0030.01014.43
5.6.330.0000.01014.02
5.6.320.0030.00714.45
5.6.310.0030.00814.20
5.6.300.0040.01114.34
5.6.290.0030.00614.23
5.6.280.0020.04317.71
5.6.270.0030.01014.22
5.6.260.0030.00714.11
5.6.250.0070.04217.30
5.6.240.0100.04217.36
5.6.230.0120.04017.38
5.6.220.0100.03717.41
5.6.210.0060.04117.44
5.6.200.0050.02517.52
5.6.190.0040.02617.69
5.6.180.0040.02517.63
5.6.170.0080.02317.50
5.6.160.0010.02617.58
5.6.150.0050.02417.59
5.6.140.0040.02717.68
5.6.130.0000.02617.61
5.6.120.0110.02917.54
5.6.110.0050.02917.76
5.6.100.0060.03617.58
5.6.90.0070.02517.58
5.6.80.0100.01817.19
5.6.70.0050.02217.32
5.6.60.0060.02317.20
5.6.50.0040.02617.26
5.6.40.0050.02317.28
5.6.30.0000.02817.31
5.6.20.0020.02617.15
5.6.10.0070.02217.26
5.6.00.0060.02117.29
5.5.380.0020.04715.83
5.5.370.0030.04415.70
5.5.360.0030.05015.77
5.5.350.0120.03815.57
5.5.340.0080.02916.01
5.5.330.0050.02515.97
5.5.320.0070.02515.79
5.5.310.0030.02315.87
5.5.300.0060.02115.91
5.5.290.0040.02415.88
5.5.280.0070.02215.83
5.5.270.0040.02315.87
5.5.260.0050.04315.90
5.5.250.0050.03115.87
5.5.240.0050.02115.66
5.5.230.0080.01715.53
5.5.220.0060.02115.64
5.5.210.0080.01815.47
5.5.200.0060.03015.59
5.5.190.0070.02015.40
5.5.180.0020.03115.37
5.5.170.0060.00610.62
5.5.160.0060.02015.60
5.5.150.0050.03015.46
5.5.140.0030.02415.54
5.5.130.0050.03115.46
5.5.120.0040.03915.61
5.5.110.0020.02315.67
5.5.100.0070.03215.68
5.5.90.0100.04215.61
5.5.80.0100.03615.60
5.5.70.0040.04415.57
5.5.60.0050.03315.41
5.5.50.0070.04515.63
5.5.40.0060.03815.49
5.5.30.0050.04415.48
5.5.20.0090.03515.47
5.5.10.0080.03815.61
5.5.00.0100.04015.56
5.4.450.0070.03715.23
5.4.440.0030.04015.22
5.4.430.0010.03315.21
5.4.420.0000.02315.19
5.4.410.0020.02515.16
5.4.400.0030.02014.92
5.4.390.0080.02014.88
5.4.380.0050.02114.87
5.4.370.0040.03215.09
5.4.360.0020.02214.92
5.4.350.0040.02314.94
5.4.340.0130.03314.78
5.4.330.0040.00810.73
5.4.320.0000.02815.09
5.4.310.0070.01714.97
5.4.300.0030.02414.84
5.4.290.0050.02214.93
5.4.280.0050.03014.93
5.4.270.0040.02914.84
5.4.260.0050.02714.91
5.4.250.0070.03815.00
5.4.240.0070.03914.80
5.4.230.0080.03814.82
5.4.220.0050.04214.99
5.4.210.0050.02315.11
5.4.200.0090.03314.93
5.4.190.0030.03814.74
5.4.180.0030.04814.81
5.4.170.0000.03614.97
5.4.160.0020.04214.92
5.4.150.0030.04314.90
5.4.140.0050.03713.57
5.4.130.0090.02213.70
5.4.120.0070.03713.61
5.4.110.0070.03513.82
5.4.100.0070.03513.58
5.4.90.0020.03213.70
5.4.80.0050.03813.71
5.4.70.0070.03813.57
5.4.60.0090.03713.44
5.4.50.0030.04013.56
5.4.40.0080.03613.49
5.4.30.0050.04313.67
5.4.20.0050.04013.56
5.4.10.0030.03013.61
5.4.00.0060.02513.42
5.3.290.0050.02312.59
5.3.280.0090.03812.51
5.3.270.0020.03012.66
5.3.260.0080.03812.54
5.3.250.0070.03712.62
5.3.240.0050.03512.54
5.3.230.0040.04112.47
5.3.220.0050.03712.51
5.3.210.0020.04412.42
5.3.200.0050.03812.51
5.3.190.0070.03812.48
5.3.180.0070.03812.57
5.3.170.0070.03712.48
5.3.160.0030.04312.63
5.3.150.0040.04212.65
5.3.140.0070.03712.47
5.3.130.0050.04312.60
5.3.120.0070.03812.49
5.3.110.0030.02812.40
5.3.100.0050.04112.25
5.3.90.0050.04012.30
5.3.80.0050.03812.21
5.3.70.0030.03312.29
5.3.60.0030.03412.24
5.3.50.0000.04212.29
5.3.40.0040.02512.22
5.3.30.0150.02912.09
5.3.20.0010.03912.01
5.3.10.0020.04011.91
5.3.00.0090.02011.90
5.2.170.0070.03110.72
5.2.160.0050.03210.71
5.2.150.0090.02610.75
5.2.140.0090.03210.63
5.2.130.0020.02710.69
5.2.120.0030.03110.75
5.2.110.0070.02410.75
5.2.100.0030.02210.75
5.2.90.0050.03110.63
5.2.80.0020.04010.71
5.2.70.0080.03010.63
5.2.60.0030.03510.61
5.2.50.0080.02310.61
5.2.40.0060.03110.66
5.2.30.0000.02410.57
5.2.20.0080.01710.61
5.2.10.0060.03010.55
5.2.00.0020.02210.46
5.1.60.0020.03210.16
5.1.50.0070.02310.18
5.1.40.0010.02910.15
5.1.30.0010.02410.32
5.1.20.0030.01810.24
5.1.10.0060.02610.11
5.1.00.0070.02910.21
5.0.50.0060.0239.56
5.0.40.0030.0239.56
5.0.30.0060.0289.56
5.0.20.0020.0259.56
5.0.10.0030.0239.56
5.0.00.0020.0349.56
4.4.90.0030.0189.56
4.4.80.0030.0189.56
4.4.70.0000.0199.56
4.4.60.0030.0189.56
4.4.50.0020.0199.56
4.4.40.0050.0279.56
4.4.30.0010.0219.56
4.4.20.0050.0189.56
4.4.10.0010.0159.56
4.4.00.0000.0249.56
4.3.110.0020.0209.56
4.3.100.0020.0199.56
4.3.90.0040.0089.56
4.3.80.0030.0259.56
4.3.70.0070.0159.56
4.3.60.0030.0159.56
4.3.50.0040.0189.56
4.3.40.0020.0289.56
4.3.30.0020.0199.56
4.3.20.0050.0159.56
4.3.10.0020.0209.56
4.3.00.0020.0209.56

preferences:
63.94 ms | 401 KiB | 5 Q