3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ParentClass { public function fooBar(Foo $foo) { $something = $foo->toArray(); } } class ChildClass extends ParentClass { public function fooBar(Foo $foo = null) { $something = $foo->toArray(); } } $caller = new ChildClass; $caller->foobar();

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.5.30.0080.00820.76
8.5.20.0120.00519.65
8.5.10.0110.01216.93
8.5.00.0120.01019.94
8.4.180.0110.01219.86
8.4.170.0110.00923.75
8.4.160.0140.00923.67
8.4.150.0020.00014.05
8.4.140.0130.00817.73
8.4.130.0050.00418.02
8.4.120.0120.00820.55
8.4.110.0040.00522.49
8.4.100.0130.00717.79
8.4.90.0090.01122.46
8.4.80.0100.00717.97
8.4.70.0110.00718.18
8.4.60.0080.00819.13
8.4.50.0130.00620.21
8.4.40.0100.00319.52
8.4.30.0120.00817.61
8.4.20.0090.01319.63
8.4.10.0030.01319.64
8.3.300.0130.00722.59
8.3.290.0170.00518.39
8.3.280.0120.00718.41
8.3.270.0120.00716.34
8.3.260.0130.00716.69
8.3.250.0140.00418.70
8.3.240.0140.00616.50
8.3.230.0100.00816.86
8.3.220.0060.01218.92
8.3.210.0040.00320.96
8.3.200.0070.00216.73
8.3.190.0120.00617.25
8.3.180.0050.00418.29
8.3.170.0130.00617.17
8.3.160.0000.01818.58
8.3.150.0120.00618.55
8.3.140.0120.00317.10
8.3.130.0040.00418.27
8.3.120.0060.00318.76
8.3.110.0090.00020.94
8.3.100.0080.00324.06
8.3.90.0080.00026.77
8.3.80.0100.00018.55
8.3.70.0130.00316.38
8.3.60.0070.00716.88
8.3.50.0120.00518.14
8.3.40.0110.00418.97
8.3.30.0140.00418.79
8.3.20.0090.00621.73
8.3.10.0030.00523.65
8.3.00.0040.00421.82
8.2.300.0150.00618.29
8.2.290.0080.01020.51
8.2.280.0070.01218.55
8.2.270.0070.01117.13
8.2.260.0030.00616.85
8.2.250.0030.00616.91
8.2.240.0040.00717.15
8.2.230.0070.01122.58
8.2.220.0060.00337.54
8.2.210.0000.00726.77
8.2.200.0060.00316.75
8.2.190.0070.00716.63
8.2.180.0070.01116.63
8.2.170.0110.00422.96
8.2.160.0070.00718.99
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0070.00019.44
8.2.120.0080.00026.35
8.2.110.0070.00319.33
8.2.100.0110.00417.59
8.2.90.0040.00418.92
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0050.00317.92
8.2.50.0000.00718.10
8.2.40.0000.00820.42
8.2.30.0050.00319.18
8.2.20.0000.00718.10
8.2.10.0070.00017.99
8.2.00.0040.00418.18
8.1.340.0070.01420.06
8.1.330.0120.00622.02
8.1.320.0140.00616.13
8.1.310.0110.00318.46
8.1.300.0030.00619.74
8.1.290.0000.01030.84
8.1.280.0180.00325.92
8.1.270.0110.00022.05
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.20
8.1.230.0090.00317.83
8.1.220.0050.00317.79
8.1.210.0030.00518.77
8.1.200.0030.00617.35
8.1.190.0090.00017.23
8.1.180.0000.00818.10
8.1.170.0080.00018.64
8.1.160.0070.00018.70
8.1.150.0040.00418.83
8.1.140.0050.00218.95
8.1.130.0040.00417.64
8.1.120.0070.00017.47
8.1.110.0080.00017.38
8.1.100.0030.00517.34
8.1.90.0040.00417.42
8.1.80.0040.00417.41
8.1.70.0070.00017.43
8.1.60.0080.00417.60
8.1.50.0000.00817.45
8.1.40.0050.00317.56
8.1.30.0060.00317.50
8.1.20.0000.00717.55
8.1.10.0030.00617.41
8.1.00.0040.00417.40
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0040.00418.39
8.0.270.0070.00017.22
8.0.260.0030.00317.11
8.0.250.0070.00016.93
8.0.240.0030.00316.98
8.0.230.0030.00316.86
8.0.220.0030.00616.88
8.0.210.0030.00316.85
8.0.200.0040.00416.89
8.0.190.0000.00716.95
8.0.180.0050.00316.80
8.0.170.0000.00816.80
8.0.160.0040.00416.89
8.0.150.0030.00716.74
8.0.140.0040.00316.87
8.0.130.0050.00013.32
8.0.120.0000.00816.90
8.0.110.0040.00416.79
8.0.100.0000.00817.00
8.0.90.0080.00016.79
8.0.80.0110.00716.84
8.0.70.0000.00716.96
8.0.60.0040.00416.83
8.0.50.0000.00816.67
8.0.30.0120.00617.35
8.0.20.0090.01117.40
8.0.10.0050.00217.06
8.0.00.0110.00716.79
7.4.330.0050.00015.55
7.4.320.0030.00316.54
7.4.300.0000.00716.52
7.4.290.0030.00516.57
7.4.280.0000.00716.50
7.4.270.0000.00616.63
7.4.260.0030.00316.59
7.4.250.0040.00416.46
7.4.240.0000.00716.64
7.4.230.0040.00416.53
7.4.220.0070.00016.58
7.4.210.0120.00316.46
7.4.200.0070.00016.54
7.4.160.0110.00416.47
7.4.150.0130.00717.40
7.4.140.0100.00917.86
7.4.130.0130.00416.35
7.4.120.0130.00816.49
7.4.110.0120.00316.57
7.4.100.0100.00616.45
7.4.90.0030.01316.46
7.4.80.0140.00619.39
7.4.70.0110.00616.39
7.4.60.0110.00416.42
7.4.50.0030.01316.42
7.4.40.0060.01316.60
7.4.10.0050.01015.75
7.4.00.0060.00915.28
7.3.330.0050.00013.34
7.3.320.0000.00513.37
7.3.310.0070.00016.42
7.3.300.0040.00416.38
7.3.290.0070.00016.37
7.3.280.0090.00616.36
7.3.270.0070.01017.40
7.3.260.0110.00816.49
7.3.250.0060.01016.38
7.3.240.0080.01116.29
7.3.230.0100.00616.39
7.3.210.0140.00516.31
7.3.200.0090.01316.48
7.3.190.0100.00716.16
7.3.180.0140.00416.39
7.3.170.0090.00616.35
7.3.160.0070.01016.52
7.3.130.0080.01115.52
7.3.120.0080.01115.66
7.3.110.0110.00615.64
7.3.100.0080.00815.61
7.3.90.0080.00715.53
7.3.80.0100.00615.72
7.3.70.0080.00415.48
7.3.60.0090.00415.60
7.3.50.0080.00315.69
7.3.40.0020.01315.45
7.3.30.0030.01015.65
7.3.20.0020.01217.35
7.3.10.0030.01017.35
7.3.00.0040.00517.28
7.2.330.0120.01416.39
7.2.320.0120.00916.22
7.2.310.0060.01216.55
7.2.300.0200.00316.71
7.2.290.0100.00716.33
7.2.260.0120.00715.75
7.2.250.0020.01815.76
7.2.240.0070.00715.79
7.2.230.0000.01715.62
7.2.220.0060.01115.63
7.2.210.0070.00615.63
7.2.200.0030.01115.67
7.2.190.0050.00815.65
7.2.180.0070.00615.70
7.2.170.0070.00515.82
7.2.160.0030.01315.78
7.2.150.0060.00617.54
7.2.140.0080.00617.46
7.2.130.0060.00717.66
7.2.120.0040.00917.61
7.2.110.0050.00817.38
7.2.100.0090.00717.49
7.2.90.0040.01117.50
7.2.80.0050.01017.66
7.2.70.0070.00817.48
7.2.60.0050.01117.29
7.2.50.0050.01517.34
7.2.40.0040.00817.63
7.2.30.0040.01017.74
7.2.20.0060.01017.64
7.2.10.0060.01117.68
7.2.00.0040.01018.20
7.1.330.0030.01216.27
7.1.320.0060.00916.64
7.1.310.0080.00716.53
7.1.300.0050.00916.35
7.1.290.0070.00716.22
7.1.280.0020.01016.33
7.1.270.0040.01216.41
7.1.260.0050.00816.30
7.1.250.0090.00416.40
7.1.240.0080.00716.33
7.1.230.0050.00516.34
7.1.220.0000.01216.34
7.1.210.0040.00616.39
7.1.200.0100.00416.09
7.1.190.0090.00716.44
7.1.180.0090.00716.40
7.1.170.0080.00916.45
7.1.160.0020.00816.30
7.1.150.0080.00816.33
7.1.140.0070.01016.29
7.1.130.0020.01216.27
7.1.120.0050.00917.07
7.1.110.0030.01117.00
7.1.100.0080.00516.93
7.1.90.0040.00716.84
7.1.80.0020.01316.85
7.1.70.0040.01016.63
7.1.60.0100.00822.61
7.1.50.0080.00922.42
7.1.40.0050.01322.39
7.1.30.0070.01022.28
7.1.20.0090.00722.30
7.1.10.0050.00916.42
7.1.00.0060.00716.26
7.0.330.0020.01016.15
7.0.320.0040.01116.06
7.0.310.0020.01016.15
7.0.300.0070.00316.09
7.0.290.0100.00316.15
7.0.280.0080.00616.19
7.0.270.0040.00616.07
7.0.260.0040.00616.05
7.0.250.0070.00816.10
7.0.240.0030.00916.09
7.0.230.0050.00816.11
7.0.220.0000.01416.23
7.0.210.0040.01116.27
7.0.200.0070.00716.06
7.0.190.0070.00316.04
7.0.180.0050.00716.09
7.0.170.0030.01116.13
7.0.160.0080.00316.11
7.0.150.0080.00316.03
7.0.140.0060.00816.00
7.0.130.0120.00515.99
7.0.120.0060.00816.16
7.0.110.0090.00416.00
7.0.100.0090.00616.09
7.0.90.0070.00816.10
7.0.80.0080.00616.17
7.0.70.0070.00716.11
7.0.60.0060.00616.07
7.0.50.0090.00616.15
7.0.40.0080.00513.94
7.0.30.0070.00514.22
7.0.20.0020.01113.98
7.0.10.0020.01014.10
7.0.00.0030.00914.04
5.6.400.0050.00914.99
5.6.390.0070.00914.99
5.6.380.0060.00515.15
5.6.370.0040.00615.10
5.6.360.0090.00314.98
5.6.350.0080.00515.19
5.6.340.0100.00714.96
5.6.330.0030.01115.16
5.6.320.0080.00814.87
5.6.310.0040.01315.05
5.6.300.0060.00715.32
5.6.290.0040.00915.23
5.6.280.0040.00815.01
5.6.270.0080.00715.19
5.6.260.0060.00715.19
5.6.250.0080.00515.12
5.6.240.0080.00415.06
5.6.230.0100.00415.07
5.6.220.0050.00915.23
5.6.210.0050.01015.05
5.6.200.0070.00715.16
5.6.190.0040.00815.00
5.6.180.0000.01315.06
5.6.170.0030.00915.06
5.6.160.0080.00315.04
5.6.150.0070.00314.91
5.6.140.0070.00515.29
5.6.130.0080.00715.01
5.6.120.0090.00715.06
5.6.110.0070.00614.96
5.6.100.0050.01015.00
5.6.90.0040.01215.01
5.6.80.0080.00814.95
5.6.70.0070.00715.08
5.6.60.0110.00014.79
5.6.50.0080.00215.08
5.6.40.0030.01314.97
5.6.30.0030.01014.95
5.6.20.0000.01114.81
5.6.10.0060.00415.00
5.6.00.0020.01114.94

preferences:
167.21 ms | 403 KiB | 5 Q