3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Pirate { private function __construct() { } public static function construct() { $reflection = new ReflectionClass(__CLASS__); $reflection->newInstanceArgs([]); } } class Car extends Pirate { } var_dump(Pirate::construct());

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.0080.00816.50
8.3.50.0030.01018.09
8.3.40.0070.00718.79
8.3.30.0040.01119.09
8.3.20.0040.00420.52
8.3.10.0050.00323.69
8.3.00.0040.00420.64
8.2.180.0100.00716.71
8.2.170.0000.01822.96
8.2.160.0070.00720.39
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0030.01026.16
8.2.120.0080.00019.36
8.2.110.0030.00620.38
8.2.100.0090.00317.85
8.2.90.0040.00418.09
8.2.80.0060.00317.97
8.2.70.0070.00717.47
8.2.60.0030.00518.04
8.2.50.0030.00518.07
8.2.40.0000.00718.22
8.2.30.0030.00618.25
8.2.20.0050.00317.74
8.2.10.0030.00517.96
8.2.00.0000.00817.74
8.1.270.0080.00022.14
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0090.01322.00
8.1.230.0100.00020.90
8.1.220.0000.00817.74
8.1.210.0060.00318.91
8.1.200.0060.00317.36
8.1.190.0050.00317.35
8.1.180.0050.00318.10
8.1.170.0030.00518.46
8.1.160.0000.00722.02
8.1.150.0070.00018.63
8.1.140.0000.00717.33
8.1.130.0030.00317.89
8.1.120.0050.00217.43
8.1.110.0000.00817.29
8.1.100.0040.00417.36
8.1.90.0050.00517.30
8.1.80.0000.00817.40
8.1.70.0030.00317.40
8.1.60.0040.00417.62
8.1.50.0040.00417.55
8.1.40.0040.00417.53
8.1.30.0090.00017.54
8.1.20.0000.00717.68
8.1.10.0040.00417.60
8.1.00.0050.00517.43
8.0.300.0050.00220.09
8.0.290.0030.00517.05
8.0.280.0000.00718.30
8.0.270.0030.00317.22
8.0.260.0000.00617.11
8.0.250.0070.00017.01
8.0.240.0000.00716.96
8.0.230.0070.00016.94
8.0.220.0000.00716.93
8.0.210.0000.00716.93
8.0.200.0000.00616.95
8.0.190.0040.00416.99
8.0.180.0050.00316.91
8.0.170.0030.00516.98
8.0.160.0040.00416.78
8.0.150.0000.00816.75
8.0.140.0000.00716.89
8.0.130.0030.00313.29
8.0.120.0000.00816.88
8.0.110.0040.00416.79
8.0.100.0000.00816.90
8.0.90.0000.00716.95
8.0.80.0120.00916.91
8.0.70.0050.00316.80
8.0.60.0070.00016.90
8.0.50.0000.00816.79
8.0.30.0130.00717.10
8.0.20.0080.01417.40
8.0.10.0000.00717.00
8.0.00.0070.01316.79
7.4.330.0020.00215.03
7.4.320.0000.00716.45
7.4.300.0060.00016.43
7.4.290.0040.00416.65
7.4.280.0040.00416.51
7.4.270.0000.00716.52
7.4.260.0050.00216.48
7.4.250.0050.00316.52
7.4.240.0030.00516.51
7.4.230.0080.00016.69
7.4.220.0070.01116.63
7.4.210.0100.00316.53
7.4.200.0050.00216.40
7.4.190.0000.00816.71
7.4.160.0100.00716.50
7.4.150.0120.00617.40
7.4.140.0070.01017.86
7.4.130.0080.01416.63
7.4.120.0040.01316.53
7.4.110.0070.01716.55
7.4.100.0100.00716.47
7.4.90.0100.00616.39
7.4.80.0100.01219.39
7.4.70.0100.00716.45
7.4.60.0030.02016.45
7.4.50.0040.00416.43
7.4.40.0120.00316.40
7.4.30.0120.00416.40
7.4.00.0070.01114.88
7.3.330.0050.00113.24
7.3.320.0000.00613.36
7.3.310.0000.00716.48
7.3.300.0070.00016.21
7.3.290.0070.01016.39
7.3.280.0060.01216.35
7.3.270.0120.00917.40
7.3.260.0100.00716.43
7.3.250.0090.00916.44
7.3.240.0060.01316.25
7.3.230.0110.00616.39
7.3.210.0110.00516.54
7.3.200.0090.01219.39
7.3.190.0070.01416.39
7.3.180.0120.00616.19
7.3.170.0090.00616.33
7.3.160.0100.01316.50
7.3.120.0020.01214.94
7.3.110.0030.01314.91
7.3.100.0030.01414.83
7.3.90.0080.00414.91
7.3.80.0030.00714.95
7.3.70.0090.00314.74
7.3.60.0070.00714.59
7.3.50.0030.01014.82
7.3.40.0030.01014.96
7.3.30.0060.00614.83
7.3.20.0090.00616.74
7.3.10.0170.00316.57
7.3.00.0070.00616.41
7.2.330.0170.00016.60
7.2.320.0030.01616.36
7.2.310.0030.01416.52
7.2.300.0130.00916.67
7.2.290.0110.00716.68
7.2.250.0070.01115.14
7.2.240.0070.01114.96
7.2.230.0000.01415.14
7.2.220.0090.00614.84
7.2.210.0080.00314.91
7.2.200.0120.00614.66
7.2.190.0030.01214.65
7.2.180.0030.01014.95
7.2.170.0100.00315.03
7.2.160.0040.01115.03
7.2.150.0090.00316.95
7.2.140.0110.00016.62
7.2.130.0070.00716.68
7.2.120.0090.00716.71
7.2.110.0060.00916.67
7.2.100.0080.00716.67
7.2.90.0070.00816.67
7.2.80.0080.00816.79
7.2.70.0100.00816.84
7.2.60.0070.00816.70
7.2.50.0080.00816.88
7.2.40.0060.01016.81
7.2.30.0060.00816.78
7.2.20.0080.00916.72
7.2.10.0090.00816.68
7.2.00.0070.01017.31
7.1.330.0000.01615.64
7.1.320.0030.01015.53
7.1.310.0090.00615.71
7.1.300.0110.00015.63
7.1.290.0060.00615.50
7.1.280.0000.01715.55
7.1.270.0030.00715.53
7.1.260.0040.01115.59
7.1.250.0070.00515.55
7.1.240.0080.00615.62
7.1.230.0090.00615.58
7.1.220.0080.00815.54
7.1.210.0070.00515.69
7.1.200.0110.00415.57
7.1.190.0100.00515.59
7.1.180.0100.00315.67
7.1.170.0110.00415.44
7.1.160.0080.00915.55
7.1.150.0070.00515.49
7.1.140.0110.00015.63
7.1.130.0040.00715.66
7.1.120.0100.00415.57
7.1.110.0030.00715.50
7.1.100.0050.00916.20
7.1.90.0050.01115.50
7.1.80.0060.00415.65
7.1.70.0100.00315.97
7.1.60.0050.01316.90
7.1.50.0100.00715.83
7.1.40.0050.00815.59
7.1.30.0100.00515.64
7.1.20.0060.00515.67
7.1.10.0090.00615.48
7.1.00.0070.02617.90
7.0.330.0070.00715.32
7.0.320.0090.00715.30
7.0.310.0070.01015.16
7.0.300.0100.00415.25
7.0.290.0080.00415.34
7.0.280.0050.00715.24
7.0.270.0090.00215.12
7.0.260.0120.00315.06
7.0.250.0050.00715.15
7.0.240.0060.00815.22
7.0.230.0020.01015.29
7.0.220.0030.00815.02
7.0.210.0040.00815.22
7.0.200.0060.00715.69
7.0.190.0040.00815.34
7.0.180.0060.00615.17
7.0.170.0020.00915.20
7.0.160.0080.00415.40
7.0.150.0040.00815.21
7.0.140.0040.02917.55
7.0.130.0080.00615.29
7.0.120.0050.00815.34
7.0.110.0090.00515.24
7.0.100.0040.00815.25
7.0.90.0080.00215.23
7.0.80.0090.00315.30
7.0.70.0090.00415.39
7.0.60.0040.03616.94
7.0.50.0080.03016.18
7.0.40.0100.02515.67
7.0.30.0160.02815.67
7.0.20.0140.03115.46
7.0.10.0090.02415.50
7.0.00.0080.03015.58
5.6.400.0070.01014.20
5.6.390.0030.01314.47
5.6.380.0050.00914.34
5.6.370.0060.00414.49
5.6.360.0030.01014.37
5.6.350.0010.00814.40
5.6.340.0040.01014.25
5.6.330.0100.00513.89
5.6.320.0050.00914.30
5.6.310.0080.00614.09
5.6.300.0070.00414.13
5.6.290.0070.00514.37
5.6.280.0050.02816.56
5.6.270.0090.00514.12
5.6.260.0060.00814.39
5.6.250.0050.00814.14
5.6.240.0030.00914.36
5.6.230.0070.00814.16
5.6.220.0090.00414.35
5.6.210.0060.03416.32
5.6.200.0080.03015.58
5.6.190.0050.03616.38
5.6.180.0110.01916.31
5.6.170.0140.02916.42
5.6.160.0030.02516.51
5.6.150.0050.02315.51
5.6.140.0060.02015.71
5.6.130.0060.02115.56
5.6.120.0090.03116.45
5.6.110.0060.03216.34
5.6.100.0050.02616.45
5.6.90.0090.03016.44
5.6.80.0090.02416.19
5.6.70.0020.01013.98
5.6.60.0060.00714.17
5.6.50.0030.00814.15
5.6.40.0070.00514.37
5.6.30.0050.00614.42
5.6.20.0050.00514.16
5.6.10.0110.00614.31
5.6.00.0090.00414.33
5.5.380.0060.00712.44
5.5.370.0030.00512.71
5.5.360.0080.00312.46
5.5.350.0130.02715.24
5.5.340.0060.01914.38
5.5.330.0050.02015.11
5.5.320.0290.02315.13
5.5.310.0140.03215.15
5.5.300.0050.03214.34
5.5.290.0030.01914.32
5.5.280.0080.03015.34
5.5.270.0070.02415.23
5.5.260.0040.03815.58
5.5.250.0080.02815.16
5.5.240.0090.02915.05
5.5.230.0070.00712.38
5.5.220.0020.00912.63
5.5.210.0050.00712.64
5.5.200.0090.00312.38
5.5.190.0050.00412.46
5.5.180.0040.00712.49
5.5.170.0050.00712.70
5.5.160.0060.00712.58
5.5.150.0000.00912.64
5.5.140.0040.00812.35
5.5.130.0050.00512.41
5.5.120.0040.00712.71
5.5.110.0040.00612.65
5.5.100.0050.01012.68
5.5.90.0060.00312.64
5.5.80.0020.00812.21
5.5.70.0020.01012.77
5.5.60.0040.00912.41
5.5.50.0060.00512.57
5.5.40.0030.00612.49
5.5.30.0020.01012.58
5.5.20.0060.00412.52
5.5.10.0040.00612.51
5.5.00.0050.01012.16
5.4.450.0060.02216.03
5.4.440.0100.02015.91
5.4.430.0080.01816.06
5.4.420.0150.01715.96
5.4.410.0150.01815.91
5.4.400.0140.01815.83
5.4.390.0070.02215.73
5.4.380.0060.02513.47
5.4.370.0080.02513.48
5.4.360.0090.01913.51
5.4.350.0080.02413.44
5.4.340.0080.02213.55
5.4.330.0070.00310.88
5.4.320.0040.01711.51
5.4.310.0070.01511.37
5.4.300.0040.02311.29
5.4.290.0050.02111.34
5.4.280.0080.01611.24
5.4.270.0040.01811.30
5.4.260.0050.02011.31
5.4.250.0050.01711.36
5.4.240.0050.01611.27
5.4.230.0050.01811.15
5.4.220.0040.01711.30
5.4.210.0030.01911.14
5.4.200.0060.01611.14
5.4.190.0050.01811.24
5.4.180.0050.01811.18
5.4.170.0060.01811.34
5.4.160.0040.02111.17
5.4.150.0030.02611.13
5.4.140.0090.03111.18
5.4.130.0070.02411.09
5.4.120.0070.02211.12
5.4.110.0040.02111.26
5.4.100.0040.02011.34
5.4.90.0040.01711.20
5.4.80.0050.01611.17
5.4.70.0050.01811.22
5.4.60.0040.01911.18
5.4.50.0070.01811.15
5.4.40.0020.01911.21
5.4.30.0070.02011.10
5.4.20.0060.01911.02
5.4.10.0050.02310.99
5.4.00.0080.01910.95
5.3.290.0050.01711.19
5.3.280.0070.02710.99
5.3.270.0060.02411.11
5.3.260.0080.02211.10
5.3.250.0080.02111.03
5.3.240.0070.01611.09
5.3.230.0060.01810.98
5.3.220.0040.02310.97
5.3.210.0080.02011.00
5.3.200.0040.01810.96
5.3.190.0040.02211.00
5.3.180.0060.01511.19
5.3.170.0080.01411.18
5.3.160.0040.01611.12
5.3.150.0070.01711.11
5.3.140.0060.01711.09
5.3.130.0050.02311.13
5.3.120.0080.02511.13
5.3.110.0040.02611.01
5.3.100.0060.02311.00
5.3.90.0060.02311.03
5.3.80.0050.02110.81
5.3.70.0070.02010.94
5.3.60.0030.02010.86
5.3.50.0040.01810.85
5.3.40.0060.01910.80
5.3.30.0080.01810.76
5.3.20.0090.01510.76
5.3.10.0080.01310.59
5.3.00.0040.01710.63
5.2.170.0040.0239.74
5.2.160.0070.0219.74
5.2.150.0070.0209.74
5.2.140.0070.0209.73
5.2.130.0020.0199.72
5.2.120.0040.0189.72
5.2.110.0050.0179.72
5.2.100.0030.0199.72
5.2.90.0070.0149.72
5.2.80.0040.0219.71
5.2.70.0040.0179.72
5.2.60.0040.0179.69
5.2.50.0100.0189.68
5.2.40.0040.0209.66
5.2.30.0040.0229.65
5.2.20.0040.0229.65
5.2.10.0070.0199.60
5.2.00.0040.0239.53
5.1.60.0040.0219.17
5.1.50.0020.0219.17
5.1.40.0060.0189.16
5.1.30.0060.0209.34
5.1.20.0040.0219.35
5.1.10.0040.0199.21
5.1.00.0020.0239.21
5.0.50.0060.0148.45
5.0.40.0020.0178.38
5.0.30.0030.0238.29
5.0.20.0050.0148.27
5.0.10.0040.0168.26
5.0.00.0040.0218.25
4.4.90.0020.0117.52
4.4.80.0030.0107.51
4.4.70.0010.0127.51
4.4.60.0020.0107.51
4.4.50.0020.0147.51
4.4.40.0030.0187.48
4.4.30.0040.0107.51
4.4.20.0020.0147.55
4.4.10.0030.0147.55
4.4.00.0010.0177.51
4.3.110.0040.0127.46
4.3.100.0030.0127.46
4.3.90.0020.0147.44
4.3.80.0010.0197.42
4.3.70.0020.0127.44
4.3.60.0030.0127.44
4.3.50.0040.0127.44
4.3.40.0020.0197.40
4.3.30.0000.0156.78
4.3.20.0020.0136.77
4.3.10.0020.0146.75
4.3.00.0040.00817.78

preferences:
60.46 ms | 400 KiB | 5 Q