3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function foo() { var_dump('Calling in base class'); } } class Baz extends Foo { public function foo() { var_dump('Calling in sub class'); parent::foo(); } } $baz = new Baz(); $baz->foo();

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.00418.56
8.3.60.0170.00318.31
8.3.50.0140.00521.93
8.3.40.0110.01118.67
8.3.30.0110.00418.97
8.3.20.0040.00420.21
8.3.10.0040.00422.02
8.3.00.0080.00022.32
8.2.190.0110.00316.58
8.2.180.0070.00716.38
8.2.170.0110.00422.96
8.2.160.0070.00720.61
8.2.150.0060.00324.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0040.00417.63
8.2.110.0030.00622.24
8.2.100.0030.01019.13
8.2.90.0050.00219.25
8.2.80.0030.00617.97
8.2.70.0000.00817.25
8.2.60.0070.00017.80
8.2.50.0040.00418.07
8.2.40.0040.00418.16
8.2.30.0000.00718.05
8.2.20.0060.00317.47
8.2.10.0070.00017.59
8.2.00.0060.00317.48
8.1.280.0080.00625.92
8.1.270.0090.00022.23
8.1.260.0050.00226.35
8.1.250.0000.01028.09
8.1.240.0060.00323.81
8.1.230.0070.00319.10
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0000.01017.23
8.1.190.0030.00617.40
8.1.180.0000.00818.10
8.1.170.0080.00018.54
8.1.160.0000.01021.84
8.1.150.0040.00418.54
8.1.140.0000.00717.34
8.1.130.0020.00517.77
8.1.120.0070.00317.43
8.1.110.0040.00417.42
8.1.100.0000.00717.39
8.1.90.0000.00717.25
8.1.80.0000.00717.44
8.1.70.0000.00717.25
8.1.60.0000.00817.55
8.1.50.0000.00717.50
8.1.40.0000.00717.45
8.1.30.0030.00517.59
8.1.20.0000.00817.61
8.1.10.0040.00417.38
8.1.00.0040.00417.39
8.0.300.0000.00818.77
8.0.290.0040.00417.15
8.0.280.0050.00218.30
8.0.270.0030.00317.22
8.0.260.0000.00718.24
8.0.250.0000.00816.89
8.0.240.0000.00716.87
8.0.230.0060.00016.76
8.0.220.0030.00316.86
8.0.210.0030.00316.88
8.0.200.0030.00316.86
8.0.190.0000.00716.75
8.0.180.0040.00416.82
8.0.170.0040.00416.85
8.0.160.0000.00716.81
8.0.150.0090.00316.76
8.0.140.0000.00716.70
8.0.130.0050.00013.29
8.0.120.0000.00816.79
8.0.110.0000.00816.71
8.0.100.0040.00416.83
8.0.90.0040.00416.83
8.0.80.0070.01416.77
8.0.70.0040.00416.70
8.0.60.0040.00416.93
8.0.50.0000.00716.71
8.0.30.0070.01817.10
8.0.20.0090.00917.40
8.0.10.0000.00716.81
8.0.00.0130.00816.55
7.4.330.0050.00015.00
7.4.320.0000.00616.56
7.4.300.0030.00316.39
7.4.290.0040.00416.50
7.4.280.0080.00016.56
7.4.270.0040.00416.52
7.4.260.0030.00616.38
7.4.250.0070.00016.55
7.4.240.0020.00516.59
7.4.230.0070.00016.42
7.4.220.0130.00316.54
7.4.210.0060.00916.48
7.4.200.0030.00316.65
7.4.190.0020.00516.63
7.4.160.0110.00816.50
7.4.150.0080.01317.40
7.4.140.0110.00617.86
7.4.130.0090.00916.38
7.4.120.0110.01016.42
7.4.110.0120.00416.43
7.4.100.0090.00916.50
7.4.90.0090.00916.45
7.4.80.0130.00719.39
7.4.70.0090.00916.44
7.4.60.0140.00316.63
7.4.50.0000.00916.59
7.4.40.0000.00922.77
7.4.30.0060.01316.43
7.4.00.0090.00914.80
7.3.330.0030.00313.23
7.3.320.0000.00513.07
7.3.310.0030.00316.20
7.3.300.0000.00616.16
7.3.290.0150.00416.30
7.3.280.0080.00816.32
7.3.270.0090.00917.40
7.3.260.0060.01216.46
7.3.250.0030.01516.34
7.3.240.0110.01116.43
7.3.230.0070.01016.48
7.3.210.0100.01016.44
7.3.200.0140.01019.39
7.3.190.0070.01416.29
7.3.180.0090.00616.52
7.3.170.0130.00716.27
7.3.160.0060.00916.51
7.3.120.0000.01414.79
7.3.10.0030.00716.55
7.3.00.0030.00516.60
7.2.330.0090.01216.61
7.2.320.0100.01316.71
7.2.310.0030.01516.56
7.2.300.0100.00616.42
7.2.290.0090.00916.72
7.2.130.0050.01016.90
7.2.120.0040.00716.83
7.2.110.0030.01116.80
7.2.100.0080.00516.69
7.2.90.0050.00616.63
7.2.80.0080.00516.93
7.2.70.0070.00416.79
7.2.60.0050.00716.73
7.2.50.0030.00916.83
7.2.40.0030.00816.74
7.2.30.0040.00916.82
7.2.20.0050.00816.75
7.2.10.0030.01016.88
7.2.00.0040.00617.58
7.1.250.0090.00315.38
7.1.240.0060.00615.68
7.1.230.0030.01015.57
7.1.220.0070.00415.55
7.1.210.0110.00315.77
7.1.200.0070.00515.57
7.1.190.0080.00515.76
7.1.180.0030.00915.57
7.1.170.0090.00015.69
7.1.160.0080.00315.79
7.1.150.0080.00815.69
7.1.140.0090.00315.59
7.1.130.0000.01015.76
7.1.120.0070.00715.67
7.1.110.0070.00315.69
7.1.100.0050.00616.76
7.1.90.0040.01115.67
7.1.80.0000.01415.54
7.1.70.0090.00716.45
7.1.60.0000.01517.85
7.1.50.0100.00816.07
7.1.40.0040.01115.37
7.1.30.0000.00915.45
7.1.20.0090.00315.67
7.1.10.0100.00615.34
7.1.00.0100.03719.04
7.0.330.0040.00715.03
7.0.320.0060.00815.07
7.0.310.0030.00615.17
7.0.300.0000.01415.14
7.0.290.0040.00415.32
7.0.280.0070.00015.39
7.0.270.0050.00515.20
7.0.260.0040.00715.43
7.0.250.0060.00315.40
7.0.240.0030.00515.32
7.0.230.0030.00515.33
7.0.220.0000.01015.45
7.0.210.0030.00715.32
7.0.200.0090.00115.92
7.0.190.0030.01215.24
7.0.180.0030.01015.34
7.0.170.0060.00615.42
7.0.160.0090.00315.03
7.0.150.0070.00715.29
7.0.140.0020.04218.77
7.0.130.0000.01315.14
7.0.120.0060.00615.14
7.0.110.0060.00615.45
7.0.100.0070.03917.60
7.0.90.0110.03817.69
7.0.80.0120.04817.59
7.0.70.0040.04417.60
7.0.60.0050.04417.54
7.0.50.0070.03517.88
7.0.40.0100.04216.70
7.0.30.0080.04716.69
7.0.20.0100.04216.78
7.0.10.0070.04216.74
7.0.00.0050.04716.72
5.6.380.0030.00914.35
5.6.370.0000.01114.32
5.6.360.0090.00314.44
5.6.350.0130.00014.38
5.6.340.0060.00614.42
5.6.330.0070.00714.20
5.6.320.0030.01014.38
5.6.310.0080.00414.28
5.6.300.0060.00614.61
5.6.290.0000.01114.31
5.6.280.0030.04217.58
5.6.270.0040.00814.58
5.6.260.0080.00614.26
5.6.250.0120.04017.46
5.6.240.0060.04717.26
5.6.230.0070.04317.52
5.6.220.0150.03717.40
5.6.210.0100.04317.39
5.6.200.0070.03017.66
5.6.190.0070.05017.65
5.6.180.0070.04217.63
5.6.170.0030.03817.70
5.6.160.0050.05217.50
5.6.150.0060.03017.68
5.6.140.0050.04317.65
5.6.130.0100.04517.72
5.6.120.0060.04317.64
5.6.110.0020.05017.80
5.6.100.0030.02917.65
5.6.90.0060.02317.61
5.6.80.0070.03517.39
5.6.70.0030.03717.32
5.6.60.0070.03717.38
5.6.50.0090.02317.34
5.6.40.0090.01917.20
5.6.30.0110.04017.18
5.6.20.0080.03817.35
5.6.10.0050.02617.35
5.6.00.0050.02717.29
5.5.380.0050.03015.87
5.5.370.0070.03515.80
5.5.360.0060.03315.81
5.5.350.0070.04215.82
5.5.340.0050.04415.97
5.5.330.0080.04116.04
5.5.320.0100.04216.07
5.5.310.0100.03715.96
5.5.300.0070.04215.96
5.5.290.0050.04516.07
5.5.280.0030.02816.05
5.5.270.0060.02515.89
5.5.260.0050.04516.00
5.5.250.0030.03415.89
5.5.240.0070.03415.73
5.5.230.0080.03915.60
5.5.220.0080.04215.72
5.5.210.0060.03815.65
5.5.200.0040.03615.63
5.5.190.0080.03815.77
5.5.180.0120.02415.73
5.5.170.0110.00011.18
5.5.160.0060.04115.73
5.5.150.0100.02915.67
5.5.140.0080.04015.70
5.5.130.0030.02415.70
5.5.120.0070.02515.70
5.5.110.0020.02715.72
5.5.100.0040.02615.65
5.5.90.0050.04015.67
5.5.80.0020.02815.68
5.5.70.0030.04215.62
5.5.60.0070.03315.66
5.5.50.0050.04415.66
5.5.40.0070.03015.66
5.5.30.0080.03615.62
5.5.20.0070.04515.63
5.5.10.0050.03715.61
5.5.00.0060.04015.61
5.4.450.0030.03415.37
5.4.440.0120.03515.30
5.4.430.0050.03815.19
5.4.420.0030.04515.26
5.4.410.0070.03315.11
5.4.400.0050.03515.12
5.4.390.0030.03515.11
5.4.380.0080.04015.11
5.4.370.0070.01915.16
5.4.360.0030.03715.16
5.4.350.0080.02615.21
5.4.340.0050.04315.15
5.4.330.0080.00311.18
5.4.320.0050.03715.20
5.4.310.0150.01515.11
5.4.300.0050.04015.04
5.4.290.0070.04015.10
5.4.280.0020.04515.11
5.4.270.0030.03915.11
5.4.260.0040.02515.10
5.4.250.0030.04315.13
5.4.240.0130.02815.15
5.4.230.0080.03815.15
5.4.220.0020.02715.17
5.4.210.0080.02515.17
5.4.200.0080.02015.20
5.4.190.0050.04015.19
5.4.180.0030.04015.19
5.4.170.0050.04115.01
5.4.160.0030.02815.14
5.4.150.0020.04515.06
5.4.140.0030.02613.83
5.4.130.0060.02313.82
5.4.120.0040.03213.79
5.4.110.0000.02613.75
5.4.100.0050.03713.85
5.4.90.0040.02813.87
5.4.80.0030.03913.75
5.4.70.0050.02413.77
5.4.60.0070.03313.80
5.4.50.0050.03513.77
5.4.40.0020.04013.84
5.4.30.0070.03313.79
5.4.20.0000.03013.81
5.4.10.0070.03913.76
5.4.00.0050.03013.47
5.3.290.0050.04012.93
5.3.280.0040.04012.85
5.3.270.0070.04112.91
5.3.260.0050.04012.87
5.3.250.0050.02112.88
5.3.240.0090.02712.90
5.3.230.0080.02812.90
5.3.220.0020.02312.84
5.3.210.0030.03512.89
5.3.200.0040.04212.88
5.3.190.0110.03612.92
5.3.180.0040.01712.83
5.3.170.0020.02512.93
5.3.160.0060.02412.87
5.3.150.0060.04312.84
5.3.140.0030.02512.86
5.3.130.0010.03812.89
5.3.120.0030.02212.87
5.3.110.0000.04312.89
5.3.100.0030.02312.57
5.3.90.0070.02612.56
5.3.80.0040.02712.56
5.3.70.0070.03712.63
5.3.60.0070.01912.60
5.3.50.0030.04112.55
5.3.40.0080.02912.61
5.3.30.0050.02712.55
5.3.20.0050.04012.42
5.3.10.0050.03012.48
5.3.00.0060.03512.43
5.2.170.0080.03211.60
5.2.160.0060.02111.60
5.2.150.0030.03511.60
5.2.140.0010.02111.60
5.2.130.0050.03311.60
5.2.120.0030.02711.60
5.2.110.0030.01911.60
5.2.100.0080.02711.60
5.2.90.0030.02011.60
5.2.80.0080.01311.60
5.2.70.0050.03011.60
5.2.60.0020.03211.60
5.2.50.0100.02511.60
5.2.40.0030.02811.60
5.2.30.0020.02111.60
5.2.20.0020.02211.60
5.2.10.0030.03511.60
5.2.00.0070.02711.60
5.1.60.0020.02911.60
5.1.50.0000.03111.60
5.1.40.0060.02211.60
5.1.30.0040.02011.60
5.1.20.0050.03011.60
5.1.10.0050.02911.60
5.1.00.0050.01611.60
5.0.50.0000.02011.60
5.0.40.0000.02511.60
5.0.30.0030.01911.60
5.0.20.0040.02011.60
5.0.10.0050.02711.60
5.0.00.0020.02511.60
4.4.90.0030.02011.60
4.4.80.0050.01011.60
4.4.70.0050.01511.60
4.4.60.0030.01711.60
4.4.50.0030.01511.60
4.4.40.0050.02711.60
4.4.30.0030.02011.60
4.4.20.0020.01911.60
4.4.10.0040.01911.60
4.4.00.0000.02211.60
4.3.110.0000.02011.60
4.3.100.0050.01511.60
4.3.90.0000.01311.60
4.3.80.0000.01711.60
4.3.70.0000.01611.60
4.3.60.0020.02211.60
4.3.50.0020.01311.60
4.3.40.0030.02311.60
4.3.30.0020.02011.60
4.3.20.0020.01711.60
4.3.10.0070.01511.60
4.3.00.0020.01311.60

preferences:
47.6 ms | 401 KiB | 5 Q