3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ParentClass { public function test(stdClass $thing) { print_r($thing); } } class ChildClass extends ParentClass { public function test($thing = null) { print_r($thing); } } $child = new ChildClass(); $child->test(new stdClass());

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.70.0110.00716.58
8.3.60.0090.00916.61
8.3.50.0120.00821.01
8.3.40.0070.00718.69
8.3.30.0090.01318.46
8.3.20.0000.00720.35
8.3.10.0040.00423.66
8.3.00.0040.00423.64
8.2.180.0100.01018.41
8.2.170.0110.00422.96
8.2.160.0130.00020.21
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0080.00020.60
8.2.120.0050.00326.35
8.2.110.0080.00019.26
8.2.100.0120.00017.92
8.2.90.0040.00419.08
8.2.80.0040.00417.97
8.2.70.0000.00917.38
8.2.60.0040.00418.04
8.2.50.0060.00318.09
8.2.40.0000.00822.26
8.2.30.0000.01019.42
8.2.20.0070.00017.68
8.2.10.0040.00417.94
8.2.00.0000.00917.98
8.1.280.0040.01425.92
8.1.270.0110.00721.87
8.1.260.0030.00528.09
8.1.250.0040.00428.09
8.1.240.0030.00722.56
8.1.230.0070.00417.82
8.1.220.0070.00017.74
8.1.210.0040.00418.77
8.1.200.0000.01117.23
8.1.190.0000.00817.13
8.1.180.0040.00418.10
8.1.170.0000.00918.52
8.1.160.0050.00220.70
8.1.150.0000.00820.48
8.1.140.0030.00619.55
8.1.130.0040.00417.55
8.1.120.0070.00317.29
8.1.110.0070.00017.42
8.1.100.0040.00417.29
8.1.90.0000.01017.31
8.1.80.0000.00717.27
8.1.70.0030.00317.40
8.1.60.0000.00817.57
8.1.50.0060.00317.42
8.1.40.0000.00817.52
8.1.30.0050.00317.61
8.1.20.0080.00017.39
8.1.10.0000.00717.50
8.1.00.0000.00817.34
8.0.300.0070.00018.77
8.0.290.0000.00716.75
8.0.280.0000.00718.27
8.0.270.0000.00817.08
8.0.260.0060.00017.21
8.0.250.0000.00616.89
8.0.240.0000.00816.77
8.0.230.0000.00716.88
8.0.220.0030.00516.71
8.0.210.0000.00716.80
8.0.200.0040.00416.92
8.0.190.0000.00816.77
8.0.180.0030.00516.82
8.0.170.0100.00016.85
8.0.160.0050.00216.85
8.0.150.0040.00416.68
8.0.140.0040.00416.68
8.0.130.0040.00413.26
8.0.120.0040.00416.84
8.0.110.0000.00816.79
8.0.100.0000.00716.84
8.0.90.0040.00416.70
8.0.80.0100.00316.80
8.0.70.0040.00416.74
8.0.60.0040.00416.65
8.0.50.0040.00416.64
8.0.30.0100.00717.21
8.0.20.0110.00817.40
8.0.10.0050.00216.90
8.0.00.0090.00916.78
7.4.330.0000.00616.85
7.4.320.0040.00416.51
7.4.300.0050.00316.61
7.4.290.0030.00316.47
7.4.280.0030.00716.50
7.4.270.0030.00316.48
7.4.260.0000.00716.37
7.4.250.0030.00516.46
7.4.240.0070.00016.60
7.4.230.0070.00016.69
7.4.220.0130.00316.49
7.4.210.0140.00716.61
7.4.200.0030.00316.57
7.4.160.0140.00316.56
7.4.150.0100.01017.40
7.4.140.0090.00817.86
7.4.130.0120.00916.37
7.4.120.0060.01116.51
7.4.110.0130.01016.52
7.4.100.0140.00716.38
7.4.90.0070.01116.47
7.4.80.0150.00319.39
7.4.70.0130.00316.59
7.4.60.0110.00716.51
7.4.50.0110.00416.41
7.4.40.0100.00716.46
7.4.30.0090.00916.30
7.4.10.0040.01514.82
7.4.00.0070.01215.03
7.3.330.0000.00513.30
7.3.320.0050.00013.25
7.3.310.0000.00716.18
7.3.300.0040.00316.21
7.3.290.0100.00616.21
7.3.280.0100.00716.19
7.3.270.0170.00017.40
7.3.260.0120.00616.15
7.3.250.0110.00716.29
7.3.240.0060.01116.47
7.3.230.0100.01316.39
7.3.210.0110.00716.45
7.3.200.0060.01019.39
7.3.190.0080.01216.29
7.3.180.0060.00916.50
7.3.170.0110.00716.51
7.3.160.0000.01516.36
7.3.130.0100.01014.69
7.3.120.0070.01414.68
7.3.110.0070.01014.39
7.3.100.0040.00814.39
7.3.90.0060.00914.75
7.3.80.0030.00514.95
7.3.70.0070.00714.44
7.3.60.0000.01314.44
7.3.50.0030.00614.75
7.3.40.0090.00914.79
7.3.30.0140.00314.84
7.3.20.0070.01116.72
7.3.10.0130.00316.66
7.3.00.0070.01016.43
7.2.330.0210.00316.64
7.2.320.0140.00516.68
7.2.310.0030.01316.75
7.2.300.0100.00616.44
7.2.290.0090.00616.39
7.2.260.0030.01714.91
7.2.250.0030.01814.94
7.2.240.0060.00814.67
7.2.230.0090.00614.91
7.2.220.0030.01414.52
7.2.210.0060.01015.21
7.2.200.0060.00914.86
7.2.190.0070.00714.63
7.2.180.0140.00014.87
7.2.170.0070.01015.05
7.2.160.0060.00914.90
7.2.150.0030.01616.80
7.2.140.0100.00716.72
7.2.130.0090.00616.70
7.2.120.0060.01016.69
7.2.110.0000.01516.73
7.2.100.0040.01116.92
7.2.90.0030.00916.97
7.2.80.0040.00716.61
7.2.70.0060.00916.96
7.2.60.0060.00916.79
7.2.50.0040.00716.94
7.2.40.0070.01116.47
7.2.30.0040.00716.84
7.2.20.0100.00616.60
7.2.10.0040.01116.89
7.2.00.0080.00518.04
7.1.330.0100.00315.78
7.1.320.0000.01415.84
7.1.310.0090.00615.45
7.1.300.0070.00715.71
7.1.290.0040.01115.97
7.1.280.0070.01015.70
7.1.270.0070.01115.80
7.1.260.0030.01315.72
7.1.250.0070.01315.85
7.1.240.0030.00615.62
7.1.230.0090.00315.86
7.1.220.0000.01315.86
7.1.210.0060.00915.68
7.1.200.0050.00615.70
7.1.190.0030.01015.70
7.1.180.0140.00015.72
7.1.170.0000.01215.72
7.1.160.0040.00815.56
7.1.150.0040.01115.75
7.1.140.0080.00815.80
7.1.130.0070.00415.71
7.1.120.0030.00915.85
7.1.110.0000.00915.75
7.1.100.0000.01316.92
7.1.90.0040.01115.89
7.1.80.0000.01315.79
7.1.70.0040.00816.53
7.1.60.0050.01317.59
7.1.50.0030.01116.23
7.1.40.0060.00315.80
7.1.30.0100.00015.58
7.1.20.0040.00415.56
7.1.10.0000.01615.71
7.1.00.0000.04519.03
7.0.330.0090.00915.18
7.0.320.0070.00715.36
7.0.310.0060.00615.16
7.0.300.0070.00415.07
7.0.290.0070.00415.43
7.0.280.0000.01415.45
7.0.270.0030.00915.36
7.0.260.0040.01215.04
7.0.250.0040.00815.60
7.0.240.0070.00415.52
7.0.230.0040.00715.40
7.0.220.0060.00615.59
7.0.210.0030.00615.38
7.0.200.0440.00515.04
7.0.190.0030.00715.20
7.0.180.0080.00415.28
7.0.170.0030.00615.25
7.0.160.0080.00415.34
7.0.150.0070.00715.12
7.0.140.0030.00615.17
7.0.130.0030.00615.50
7.0.120.0000.01215.07
7.0.110.0030.00915.55
7.0.100.0100.00315.43
7.0.90.0030.01315.36
7.0.80.0000.01015.27
7.0.70.0070.00715.58
7.0.60.0070.03717.66
7.0.50.0100.03816.63
7.0.40.0050.04316.89
7.0.30.0250.03516.92
7.0.20.0210.02316.77
7.0.10.0070.04616.84
7.0.00.0040.04916.70
5.6.400.0090.00614.59
5.6.390.0090.00614.39
5.6.380.0070.00714.31
5.6.370.0030.00714.19
5.6.360.0110.00414.00
5.6.350.0030.00714.00
5.6.340.0080.00614.64
5.6.330.0040.00414.52
5.6.320.0030.00914.29
5.6.310.0000.01314.09
5.6.300.0070.00414.57
5.6.290.0050.00314.27
5.6.280.0030.02117.58
5.6.270.0060.00314.42
5.6.260.0100.00314.58
5.6.250.0040.01414.20
5.6.240.0070.01014.39
5.6.230.0060.00614.39
5.6.220.0030.01014.11
5.6.210.0070.04317.49
5.6.200.0080.04216.26
5.6.190.0070.02317.54
5.6.180.0130.02317.55
5.6.170.0160.03817.27
5.6.160.0050.04617.47
5.6.150.0120.03716.29
5.6.140.0100.03916.21
5.6.130.0050.04216.35
5.6.120.0070.03417.74
5.6.110.0050.02517.64
5.6.100.0050.02917.62
5.6.90.0080.04117.52
5.6.80.0120.03917.30
5.6.70.0120.00314.39
5.6.60.0000.00814.45
5.6.50.0030.01014.00
5.6.40.0000.00914.22
5.6.30.0050.00314.05
5.6.20.0070.00714.39
5.6.10.0040.01214.08
5.6.00.0100.00313.92
5.5.380.0030.00614.04
5.5.370.0000.01414.14
5.5.360.0100.00714.32
5.5.350.0100.02417.20
5.5.340.0070.03716.04
5.5.330.0050.04417.11
5.5.320.0130.04017.24
5.5.310.0100.02517.29
5.5.300.0020.02516.08
5.5.290.0110.03916.13
5.5.280.0050.03217.53
5.5.270.0020.05017.58
5.5.260.0120.03717.56
5.5.250.0070.04217.40
5.5.240.1960.02017.16
5.5.230.0070.00714.30
5.5.220.0070.00313.96
5.5.210.0070.00714.21
5.5.200.0060.00314.29
5.5.190.0080.00414.07
5.5.180.0000.00814.29
5.5.170.0000.01414.41
5.5.160.0030.01014.16
5.5.150.0110.00014.27
5.5.140.0000.01214.21
5.5.130.0080.00414.13
5.5.120.0060.00914.12
5.5.110.0100.00714.02
5.5.100.0070.01013.99
5.5.90.0030.01514.17
5.5.80.0060.00614.27
5.5.70.0070.00714.29
5.5.60.0070.00714.30
5.5.50.0040.01213.74
5.5.40.0030.01313.90
5.5.30.0030.01014.05
5.5.20.0060.01214.11
5.5.10.0100.00313.99
5.5.00.0030.01014.18

preferences:
68.25 ms | 401 KiB | 5 Q