3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static function make() { return new static(); } } class ChildOfFoo extends Foo { public function __construct($a) { $this->a = $a;} } $b = ChildOfFoo::make(); var_dump($b);

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.0090.00618.56
8.3.50.0180.01021.12
8.3.40.0080.00818.84
8.3.30.0070.00719.09
8.3.20.0000.00720.04
8.3.10.0080.00023.66
8.3.00.0080.00019.38
8.2.180.0140.00718.41
8.2.170.0060.00822.96
8.2.160.0100.01020.48
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0050.00226.16
8.2.120.0040.00422.18
8.2.110.0060.00322.27
8.2.100.0080.00317.75
8.2.90.0050.00319.27
8.2.80.0040.00417.97
8.2.70.0080.00017.50
8.2.60.0000.00817.80
8.2.50.0000.00818.07
8.2.40.0030.00619.82
8.2.30.0030.00717.96
8.2.20.0000.00817.68
8.2.10.0040.00417.94
8.2.00.0000.00717.54
8.1.280.0160.00325.92
8.1.270.0030.00623.75
8.1.260.0070.00026.35
8.1.250.0050.00328.09
8.1.240.0130.00323.98
8.1.230.0040.00719.07
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0060.00317.22
8.1.190.0030.00517.22
8.1.180.0040.00418.10
8.1.170.0040.00418.52
8.1.160.0040.00421.95
8.1.150.0040.00418.69
8.1.140.0000.00717.33
8.1.130.0000.00717.69
8.1.120.0050.00217.35
8.1.110.0080.00017.39
8.1.100.0000.00717.27
8.1.90.0000.00717.23
8.1.80.0000.00717.29
8.1.70.0030.00517.24
8.1.60.0030.00617.36
8.1.50.0060.00317.44
8.1.40.0050.00217.45
8.1.30.0060.00317.51
8.1.20.0000.00717.52
8.1.10.0000.00817.51
8.1.00.0000.00817.43
8.0.300.0050.00218.77
8.0.290.0070.00016.75
8.0.280.0030.00318.34
8.0.270.0040.00417.13
8.0.260.0030.00317.10
8.0.250.0030.00316.95
8.0.240.0080.00016.95
8.0.230.0070.00316.84
8.0.220.0030.00516.87
8.0.210.0050.00316.90
8.0.200.0000.00717.01
8.0.190.0070.00016.95
8.0.180.0040.00416.80
8.0.170.0040.00416.83
8.0.160.0040.00416.95
8.0.150.0040.00416.88
8.0.140.0000.00716.74
8.0.130.0030.00313.33
8.0.120.0040.00416.88
8.0.110.0000.00816.79
8.0.100.0040.00416.89
8.0.90.0050.00316.80
8.0.80.0040.01816.82
8.0.70.0000.00816.76
8.0.60.0040.00416.90
8.0.50.0070.00016.76
8.0.30.0150.00517.12
8.0.20.0080.01117.40
8.0.10.0050.00316.81
8.0.00.0070.01016.66
7.4.330.0050.00015.02
7.4.320.0060.00016.47
7.4.300.0070.00016.55
7.4.290.0000.00816.59
7.4.280.0040.00416.44
7.4.270.0080.00016.34
7.4.260.0030.00316.48
7.4.250.0040.00416.54
7.4.240.0010.00616.41
7.4.230.0040.00416.29
7.4.220.0060.01216.47
7.4.210.0000.01416.62
7.4.200.0040.00416.64
7.4.160.0110.00516.48
7.4.150.0000.01717.40
7.4.140.0160.00617.86
7.4.130.0100.00716.40
7.4.120.0030.01416.60
7.4.110.0070.01416.36
7.4.100.0040.01516.53
7.4.90.0120.00816.55
7.4.80.0070.01619.39
7.4.70.0110.01116.37
7.4.60.0100.01016.50
7.4.50.0060.00316.37
7.4.40.0100.00716.59
7.4.30.0200.00316.52
7.4.10.0110.00715.65
7.4.00.0040.01315.51
7.3.330.0050.00013.19
7.3.320.0020.00213.39
7.3.310.0000.00716.27
7.3.300.0000.00616.24
7.3.290.0070.00716.36
7.3.280.0090.00616.29
7.3.270.0130.00717.40
7.3.260.0120.01316.29
7.3.250.0100.01116.36
7.3.240.0060.01616.29
7.3.230.0040.01716.50
7.3.210.0040.01316.44
7.3.200.0040.01319.39
7.3.190.0190.00316.30
7.3.180.0140.00316.18
7.3.170.0080.00816.28
7.3.160.0080.00816.41
7.3.130.0080.00915.73
7.3.120.0040.01215.36
7.3.110.0070.01015.30
7.3.100.0050.00915.27
7.3.90.0080.00515.27
7.3.80.0070.00615.21
7.3.70.0080.00615.29
7.3.60.0030.00915.25
7.3.50.0050.00715.34
7.3.40.0030.01115.35
7.3.30.0050.00815.18
7.3.20.0060.00617.09
7.3.10.0030.01017.03
7.3.00.0060.00817.04
7.2.330.0060.01216.50
7.2.320.0130.01016.58
7.2.310.0070.01016.62
7.2.300.0110.00516.33
7.2.290.0090.01316.33
7.2.260.0050.01515.72
7.2.250.0100.00915.45
7.2.240.0060.01015.36
7.2.230.0070.00915.43
7.2.220.0050.01015.21
7.2.210.0050.01015.43
7.2.200.0050.01115.44
7.2.190.0070.00515.31
7.2.180.0030.00815.25
7.2.170.0050.00915.36
7.2.160.0040.01015.33
7.2.150.0060.01017.31
7.2.140.0020.01217.29
7.2.130.0070.00817.21
7.2.120.0020.01317.24
7.2.110.0050.00917.32
7.2.100.0080.00617.19
7.2.90.0080.00517.22
7.2.80.0080.00617.30
7.2.70.0000.01517.21
7.2.60.0040.01117.18
7.2.50.0050.00817.30
7.2.40.0030.01217.28
7.2.30.0060.00917.19
7.2.20.0060.00717.19
7.2.10.0060.00817.23
7.2.00.0060.00817.80
7.1.330.0090.00716.19
7.1.320.0070.00616.20
7.1.310.0060.00815.99
7.1.300.0070.00716.04
7.1.290.0050.00916.05
7.1.280.0070.00716.01
7.1.270.0080.00316.13
7.1.260.0070.00816.18
7.1.250.0010.00916.19
7.1.240.0020.01316.29
7.1.230.0030.00916.41
7.1.220.0100.00316.23
7.1.210.0090.00416.38
7.1.200.0150.00715.98
7.1.190.0050.00916.43
7.1.180.0030.01316.37
7.1.170.0060.00516.26
7.1.160.0020.01216.40
7.1.150.0050.00816.35
7.1.140.0100.00516.43
7.1.130.0060.00716.33
7.1.120.0060.01016.15
7.1.110.0060.01016.38
7.1.100.0070.00816.94
7.1.90.0020.01116.44
7.1.80.0050.00916.38
7.1.70.0050.00816.40
7.1.60.0110.00617.24
7.1.50.0060.01116.54
7.1.40.0040.00816.38
7.1.30.0030.00816.31
7.1.20.0050.00816.43
7.1.10.0080.00616.25
7.1.00.0070.02818.35
7.0.330.0060.00616.20
7.0.320.0030.01216.07
7.0.310.0090.00516.21
7.0.300.0090.00416.21
7.0.290.0070.00616.13
7.0.280.0090.00516.12
7.0.270.0060.00816.19
7.0.260.0030.01216.29
7.0.250.0100.00516.05
7.0.240.0050.00716.34
7.0.230.0020.01216.22
7.0.220.0100.00516.22
7.0.210.0080.00816.12
7.0.200.0040.00616.34
7.0.190.0040.00816.29
7.0.180.0020.01016.40
7.0.170.0020.01216.17
7.0.160.0070.00716.27
7.0.150.0080.00616.18
7.0.140.0070.02618.20
7.0.130.0070.00816.18
7.0.120.0020.00916.09
7.0.110.0080.00416.15
7.0.100.0060.00616.36
7.0.90.0020.00916.26
7.0.80.0050.00616.07
7.0.70.0080.00516.17
7.0.60.0080.02917.41
7.0.50.0060.01816.82
7.0.40.0090.02616.22
7.0.30.0140.02916.13
7.0.20.0120.03116.23
7.0.10.0070.03416.20
7.0.00.0040.03616.05
5.6.400.0000.01515.20
5.6.390.0030.00915.22
5.6.380.0040.00715.19
5.6.370.0110.00615.37
5.6.360.0020.01215.11
5.6.350.0070.00815.11
5.6.340.0090.00715.13
5.6.330.0100.00415.31
5.6.320.0100.00715.14
5.6.310.0030.01315.13
5.6.300.0080.00614.98
5.6.290.0050.01015.26
5.6.280.0050.02816.98
5.6.270.0050.00715.23
5.6.260.0050.00615.36
5.6.250.0030.01015.03
5.6.240.0060.00615.33
5.6.230.0080.00715.05
5.6.220.0090.00315.15
5.6.210.0050.03116.97
5.6.200.0090.02116.18
5.6.190.0050.03016.93
5.6.180.0090.02116.83
5.6.170.0160.02816.85
5.6.160.0070.02416.86
5.6.150.0020.03716.09
5.6.140.0050.02116.10
5.6.130.0040.03416.16
5.6.120.0040.03617.09
5.6.110.0070.03417.03
5.6.100.0090.03017.11
5.6.90.0130.02917.02
5.6.80.0090.01616.88
5.6.70.1470.02216.83
5.6.60.0050.00715.06
5.6.50.0050.00515.00
5.6.40.0060.01014.95
5.6.30.0020.00915.02
5.6.20.0050.00714.95
5.6.10.0100.00515.20
5.6.00.0080.00515.17
5.5.380.0120.00315.17
5.5.370.0060.01015.03
5.5.360.0070.00414.82
5.5.350.0050.03016.92
5.5.340.0050.01815.93
5.5.330.0070.02416.63
5.5.320.0120.03616.79
5.5.310.0100.01716.80
5.5.300.0070.02316.04
5.5.290.0100.03116.01
5.5.280.0020.02217.00
5.5.270.0070.03216.86
5.5.260.0070.03317.03
5.5.250.0060.02916.82
5.5.240.0120.02916.69
5.5.230.0090.00714.91
5.5.220.0120.00315.06
5.5.210.0100.00415.07
5.5.200.0050.00814.98
5.5.190.0030.00815.14
5.5.180.0030.01114.99
5.5.170.0050.01015.00
5.5.160.0100.00315.13
5.5.150.0030.00914.95
5.5.140.0070.00914.91
5.5.130.0070.00614.87
5.5.120.0080.00615.02
5.5.110.0060.00414.81
5.5.100.0070.01114.92
5.5.90.0080.00814.96
5.5.80.0080.00514.66
5.5.70.0060.00515.03
5.5.60.0080.00614.91
5.5.50.0070.00515.12
5.5.40.0100.00615.06
5.5.30.0060.00814.68
5.5.20.0090.00815.02
5.5.10.0020.01214.85
5.5.00.0100.00614.99
5.4.450.0280.02114.92
5.4.440.0230.02014.88
5.4.430.0250.03614.92
5.4.420.0260.00514.87
5.4.410.0250.00414.77
5.4.400.0230.00414.77
5.4.390.0240.00314.78
5.4.380.0240.00514.81
5.4.370.0200.00614.77
5.4.360.0340.00214.76
5.4.350.0300.00414.73
5.4.340.0050.01712.41
5.4.330.0050.00812.61
5.4.320.0050.01612.57
5.4.310.0050.01712.57
5.4.300.0070.01512.57
5.4.290.0060.01712.57
5.4.280.0040.01612.54
5.4.270.0060.01812.54
5.4.260.0070.01512.54
5.4.250.0060.01712.54
5.4.240.0050.01912.54
5.4.230.0030.02112.54
5.4.220.0040.01912.54
5.4.210.0040.02012.53
5.4.200.0060.01912.54
5.4.190.0030.01812.53
5.4.180.0060.01912.53
5.4.170.0040.01712.54
5.4.160.0080.01312.53
5.4.150.0060.01612.54
5.4.140.0070.01512.43
5.4.130.0050.01812.45
5.4.120.0040.02112.47
5.4.110.0060.01912.41
5.4.100.0080.01812.41
5.4.90.0070.01412.41
5.4.80.0020.02012.41
5.4.70.0050.01812.41
5.4.60.0070.01512.41
5.4.50.0050.01712.41
5.4.40.0070.01712.40
5.4.30.0060.01512.40
5.4.20.0030.01812.40
5.4.10.0040.01512.40
5.4.00.0060.01412.23
5.3.290.0080.03812.80
5.3.280.0060.03812.71
5.3.270.0060.03912.72
5.3.260.0070.03912.72
5.3.250.0080.03712.72
5.3.240.0040.04012.72
5.3.230.0080.03712.71
5.3.220.0040.04312.68
5.3.210.0050.04212.68
5.3.200.0050.04112.68
5.3.190.0080.04212.68
5.3.180.0040.04012.67
5.3.170.0120.03212.67
5.3.160.0040.03812.67
5.3.150.0080.03612.68
5.3.140.0070.04112.66
5.3.130.0070.03712.66
5.3.120.0080.03712.66
5.3.110.0080.03812.65
5.3.100.0060.04112.12
5.3.90.0120.03412.11
5.3.80.0110.04512.09
5.3.70.0050.03812.10
5.3.60.0120.03812.08
5.3.50.0070.03612.03
5.3.40.0080.03512.02
5.3.30.0060.03711.98
5.3.20.0050.03811.77
5.3.10.0090.03611.73
5.3.00.0080.03911.73
5.2.170.0050.0349.21
5.2.160.0050.0319.21
5.2.150.0040.0349.21
5.2.140.0090.0279.21
5.2.130.0050.0289.17
5.2.120.0060.0279.18
5.2.110.0040.0299.18
5.2.100.0050.0299.18
5.2.90.0020.0329.18
5.2.80.0070.0309.17
5.2.70.0040.0349.18
5.2.60.0030.0319.13
5.2.50.0060.0309.10
5.2.40.0030.0309.07
5.2.30.0170.0499.05
5.2.20.0080.0609.04
5.2.10.0080.0328.94
5.2.00.0100.0538.80
5.1.60.0050.0268.10
5.1.50.0030.0278.09
5.1.40.0060.0248.07
5.1.30.0060.0308.41
5.1.20.0050.0278.43
5.1.10.0090.0388.17
5.1.00.0060.0278.16
5.0.50.0050.0196.64
5.0.40.0050.0196.50
5.0.30.0030.0356.31
5.0.20.0020.0226.28
5.0.10.0040.0206.26
5.0.00.0030.0326.25
4.4.90.0040.0164.78
4.4.80.0020.0244.76
4.4.70.0010.0184.76
4.4.60.0020.0174.76
4.4.50.0030.0194.77
4.4.40.0060.0454.71
4.4.30.0050.0194.76
4.4.20.0040.0224.84
4.4.10.0050.0294.84
4.4.00.0030.0274.76
4.3.110.0060.0174.67
4.3.100.0040.0174.66
4.3.90.0020.0174.64
4.3.80.0020.0284.59
4.3.70.0030.0164.63
4.3.60.0070.0184.63
4.3.50.0060.0274.63
4.3.40.0020.0264.54
4.3.30.0020.0163.30
4.3.20.0020.0163.28
4.3.10.0030.0153.24
4.3.00.0100.0306.72

preferences:
48.13 ms | 401 KiB | 5 Q