3v4l.org

run code in 300+ PHP versions simultaneously
<?php class myA { public function testA() { var_dump($this, is_callable(array($this, 'testB'))); } } class myB extends myA { public function testA () { return parent::testA(); } public function testB () { return; } } $a = new myA(); $b = new myB(); $a->testA(); $b->testA();

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.0040.01118.40
8.3.50.0130.00721.92
8.3.40.0060.00918.56
8.3.30.0040.01118.97
8.3.20.0040.00420.22
8.3.10.0070.00023.48
8.3.00.0030.00517.80
8.2.180.0070.00716.63
8.2.170.0110.00422.96
8.2.160.0110.00320.52
8.2.150.0090.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00521.02
8.2.110.0090.00022.13
8.2.100.0040.00718.22
8.2.90.0040.00419.21
8.2.80.0050.00317.97
8.2.70.0030.00617.38
8.2.60.0050.00317.93
8.2.50.0000.00818.07
8.2.40.0000.00918.28
8.2.30.0070.00318.14
8.2.20.0060.00317.75
8.2.10.0080.00017.94
8.2.00.0030.00519.39
8.1.280.0150.00625.92
8.1.270.0040.00423.75
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00422.14
8.1.230.0080.00319.04
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0000.00917.25
8.1.190.0030.00517.23
8.1.180.0030.00518.10
8.1.170.0040.00418.64
8.1.160.0030.00322.05
8.1.150.0000.00718.82
8.1.140.0070.00017.50
8.1.130.0000.00717.81
8.1.120.0000.00717.46
8.1.110.0030.00317.45
8.1.100.0000.00717.41
8.1.90.0070.00017.50
8.1.80.0000.00717.39
8.1.70.0030.00317.46
8.1.60.0000.00917.48
8.1.50.0040.00417.38
8.1.40.0080.00017.52
8.1.30.0000.00817.54
8.1.20.0030.00517.64
8.1.10.0030.00517.45
8.1.00.0030.00517.50
8.0.300.0000.00818.77
8.0.290.0030.00616.75
8.0.280.0000.00718.42
8.0.270.0030.00417.32
8.0.260.0030.00317.14
8.0.250.0000.00716.93
8.0.240.0060.00316.87
8.0.230.0030.00316.83
8.0.220.0060.00316.88
8.0.210.0030.00316.95
8.0.200.0030.00316.87
8.0.190.0050.00316.85
8.0.180.0080.00016.86
8.0.170.0000.00716.91
8.0.160.0000.00816.91
8.0.150.0040.00416.90
8.0.140.0000.00816.79
8.0.130.0050.00013.29
8.0.120.0000.00816.77
8.0.110.0030.00516.82
8.0.100.0000.00816.95
8.0.90.0000.00716.84
8.0.80.0150.00016.79
8.0.70.0000.00816.88
8.0.60.0000.00716.89
8.0.50.0000.00716.83
8.0.30.0100.00817.01
8.0.20.0080.01117.40
8.0.10.0000.00817.07
8.0.00.0130.00416.82
7.4.330.0000.00615.00
7.4.320.0030.00316.65
7.4.300.0030.00316.43
7.4.290.0070.00016.37
7.4.280.0040.00416.64
7.4.270.0000.00716.62
7.4.260.0070.00016.51
7.4.250.0000.00716.38
7.4.240.0000.00716.45
7.4.230.0000.00716.39
7.4.220.0060.01116.70
7.4.210.0120.00316.68
7.4.200.0030.00316.67
7.4.160.0090.00916.33
7.4.150.0070.01317.40
7.4.140.0080.00817.86
7.4.130.0070.01216.48
7.4.120.0060.01116.53
7.4.110.0070.01016.38
7.4.100.0110.00716.49
7.4.90.0110.00716.58
7.4.80.0090.01019.39
7.4.70.0130.00416.46
7.4.60.0130.00816.45
7.4.50.0040.00416.21
7.4.40.0060.01016.28
7.4.30.0110.00616.59
7.4.00.0040.01214.89
7.3.330.0050.00013.13
7.3.320.0000.00513.29
7.3.310.0050.00216.32
7.3.300.0030.00316.30
7.3.290.0030.01316.32
7.3.280.0080.00916.29
7.3.270.0100.01017.40
7.3.260.0150.00316.30
7.3.250.0080.01016.41
7.3.240.0140.00416.34
7.3.230.0070.01016.39
7.3.210.0140.00416.41
7.3.200.0060.01219.39
7.3.190.0060.01516.37
7.3.180.0030.01216.32
7.3.170.0110.00816.50
7.3.160.0110.00616.21
7.3.120.0060.00914.70
7.3.10.0040.01116.64
7.3.00.0020.01116.47
7.2.330.0150.00616.45
7.2.320.0070.01016.25
7.2.310.0070.01116.42
7.2.300.0060.01216.70
7.2.290.0030.01316.68
7.2.130.0050.01116.63
7.2.120.0020.01016.90
7.2.110.0050.00716.83
7.2.100.0030.00716.76
7.2.90.0050.00716.96
7.2.80.0070.00916.95
7.2.70.0060.00616.74
7.2.60.0060.00716.91
7.2.50.0060.00616.61
7.2.40.0090.00816.89
7.2.30.0070.01216.76
7.2.20.0150.00716.80
7.2.10.0080.00816.85
7.2.00.0070.00817.44
7.1.250.0020.01115.79
7.1.240.0040.00815.75
7.1.230.0040.01115.62
7.1.220.0080.00315.82
7.1.210.0070.01015.79
7.1.200.0000.01115.58
7.1.190.0030.01015.60
7.1.180.0080.00415.77
7.1.170.0060.00915.71
7.1.160.0130.00315.79
7.1.150.0060.00615.79
7.1.140.0260.00715.61
7.1.130.0040.01315.53
7.1.120.0060.00615.39
7.1.110.0050.00515.79
7.1.100.0050.00516.93
7.1.90.0070.00815.61
7.1.80.0070.00715.66
7.1.70.0040.00816.46
7.1.60.0120.00717.66
7.1.50.0050.01316.47
7.1.40.0080.00415.76
7.1.30.0000.00915.51
7.1.20.0100.00315.75
7.1.10.0000.01315.59
7.1.00.0020.03619.01
7.0.330.0030.00515.42
7.0.320.0030.00615.47
7.0.310.0030.00915.39
7.0.300.0000.01115.18
7.0.290.0240.00715.30
7.0.280.0030.00615.27
7.0.270.0000.01215.52
7.0.260.0050.00515.24
7.0.250.0060.00615.21
7.0.240.0040.01115.44
7.0.230.0100.00715.24
7.0.220.0040.01115.53
7.0.210.0040.00815.30
7.0.200.0060.00515.87
7.0.190.0060.00315.11
7.0.180.0040.01115.29
7.0.170.0100.00615.09
7.0.160.0090.00315.52
7.0.150.0050.00515.30
7.0.140.0080.03518.69
7.0.130.0070.00415.19
7.0.120.0030.00615.44
7.0.110.0060.00315.46
7.0.100.0090.00315.53
7.0.90.0060.00615.20
7.0.80.0080.00415.18
7.0.70.0060.00615.52
7.0.60.0080.03817.67
7.0.50.0050.02516.64
7.0.40.0070.02716.60
7.0.30.0160.04016.81
7.0.20.0150.04516.79
7.0.10.0080.04316.62
7.0.00.0050.03816.76
5.6.380.0060.00314.13
5.6.370.0030.01014.18
5.6.360.0060.00614.26
5.6.350.0080.00814.29
5.6.340.0000.01014.11
5.6.330.0060.00614.32
5.6.320.0040.01114.13
5.6.310.0030.00914.50
5.6.300.0030.00714.11
5.6.290.0030.01013.92
5.6.280.0020.04317.71
5.6.270.0060.00314.12
5.6.260.0070.00714.56
5.6.250.0030.00914.04
5.6.240.0060.00614.39
5.6.230.0040.00813.69
5.6.220.0060.00314.23
5.6.210.0060.04017.31
5.6.200.0030.03416.16
5.6.190.0090.02217.26
5.6.180.0100.02717.47
5.6.170.0150.03217.22
5.6.160.0050.04617.26
5.6.150.0030.02816.04
5.6.140.0030.04716.20
5.6.130.0020.02916.21
5.6.120.0060.02217.58
5.6.110.0050.02517.60
5.6.100.0100.03817.62
5.6.90.0070.04617.79
5.6.80.0070.04317.30
5.6.70.0060.00814.05
5.6.60.0070.00714.07
5.6.50.0030.01314.15
5.6.40.0090.00614.19
5.6.30.0080.00414.07
5.6.20.0070.00714.40
5.6.10.0050.00514.17
5.6.00.0060.01214.21
5.5.380.0090.00311.60
5.5.370.0040.00811.60
5.5.360.0080.00011.60
5.5.350.0150.03716.01
5.5.340.0050.04314.83
5.5.330.0050.04715.87
5.5.320.0170.02815.98
5.5.310.0180.02716.01
5.5.300.0030.03514.83
5.5.290.0050.02014.77
5.5.280.0120.03816.19
5.5.270.0030.04716.19
5.5.260.0060.02016.21
5.5.250.0050.03716.15
5.5.240.0070.03715.88
5.5.230.0000.00711.60
5.5.220.0030.00711.60
5.5.210.0090.00311.60
5.5.200.0030.00311.60
5.5.190.0060.00311.60
5.5.180.0000.01011.60
5.5.170.0030.00911.60
5.5.160.0060.00011.60
5.5.150.0060.00611.60
5.5.140.0060.00611.60
5.5.130.0040.00711.60
5.5.120.0030.00311.60
5.5.110.0030.00311.60
5.5.100.0050.00511.60
5.5.90.0070.00411.60
5.5.80.0090.00311.60
5.5.70.0000.01111.60
5.5.60.0000.01211.60
5.5.50.0060.00611.60
5.5.40.0070.00311.60
5.5.30.0000.00811.60
5.5.20.0000.00911.60
5.5.10.0030.01011.60
5.5.00.0090.00311.60
5.4.450.0370.02515.54
5.4.440.0160.02315.49
5.4.430.0080.03115.39
5.4.420.0120.02815.54
5.4.410.0080.02815.30
5.4.400.0230.03315.24
5.4.390.0150.03315.19
5.4.380.0100.02715.18
5.4.370.0070.02315.14
5.4.360.0050.03015.16
5.4.350.0050.02611.81
5.4.340.0040.02211.81
5.4.330.0000.01211.60
5.4.320.0040.02512.05
5.4.310.0060.02112.05
5.4.300.0050.02012.05
5.4.290.0070.02012.05
5.4.280.0050.02412.00
5.4.270.0070.01812.00
5.4.260.0080.02112.00
5.4.250.0040.02412.00
5.4.240.0060.01812.00
5.4.230.0030.02412.00
5.4.220.0050.02312.00
5.4.210.0080.02212.00
5.4.200.0050.02212.00
5.4.190.0100.02411.99
5.4.180.0070.01912.00
5.4.170.0060.02012.00
5.4.160.0040.02212.00
5.4.150.0070.02011.99
5.4.140.0060.01911.84
5.4.130.0030.02111.83
5.4.120.0070.02011.81
5.4.110.0050.01911.81
5.4.100.0090.01711.81
5.4.90.0070.02111.81
5.4.80.0080.01611.81
5.4.70.0040.02611.81
5.4.60.0020.02411.81
5.4.50.0070.02011.80
5.4.40.0020.02411.80
5.4.30.0090.01811.80
5.4.20.0070.01911.80
5.4.10.0060.02111.80
5.4.00.0040.02211.54
5.3.290.0040.02812.20
5.3.280.0040.02112.15
5.3.270.0060.02112.16
5.3.260.0070.02212.16
5.3.250.0050.02212.16
5.3.240.0050.02112.16
5.3.230.0030.02512.15
5.3.220.0060.02112.14
5.3.210.0050.02212.14
5.3.200.0040.02012.14
5.3.190.0030.02512.14
5.3.180.0030.02312.14
5.3.170.0050.01912.13
5.3.160.0040.02212.14
5.3.150.0020.02512.14
5.3.140.0060.02012.13
5.3.130.0060.02212.13
5.3.120.0020.02612.13
5.3.110.0030.02412.13
5.3.100.0060.02011.86
5.3.90.0020.02211.85
5.3.80.0070.01911.85
5.3.70.0090.01711.85
5.3.60.0040.02111.84
5.3.50.0070.01911.81
5.3.40.0080.02211.81
5.3.30.0050.02011.79
5.3.20.0020.02211.69
5.3.10.0030.02111.67
5.3.00.0060.02111.66
5.2.170.0050.01910.42
5.2.160.0020.01910.42
5.2.150.0030.01710.41
5.2.140.0080.01510.41
5.2.130.0020.02110.39
5.2.120.0050.01610.39
5.2.110.0050.01710.40
5.2.100.0040.01510.39
5.2.90.0060.01710.39
5.2.80.0050.01810.39
5.2.70.0050.01710.39
5.2.60.0030.02110.37
5.2.50.0070.01610.35
5.2.40.0070.01410.34
5.2.30.0030.01810.32
5.2.20.0050.01610.32
5.2.10.0010.02110.27
5.2.00.0040.01610.21
5.1.60.0040.0169.85
5.1.50.0060.0139.84
5.1.40.0060.0149.84
5.1.30.0040.01510.01
5.1.20.0020.02310.03
5.1.10.0020.0189.88
5.1.00.0020.0189.88
5.0.50.0070.0129.12
5.0.40.0040.0149.05
5.0.30.0020.0198.96
5.0.20.0050.0118.94
5.0.10.0020.0168.93
5.0.00.0030.0218.93
4.4.90.0020.0138.19
4.4.80.0040.0098.18
4.4.70.0020.0128.18
4.4.60.0010.0118.18
4.4.50.0030.0098.19
4.4.40.0020.0158.16
4.4.30.0020.0108.18
4.4.20.0020.0098.22
4.4.10.0060.0098.22
4.4.00.0030.0138.18
4.3.110.0020.0108.13
4.3.100.0020.0098.13
4.3.90.0020.0108.12
4.3.80.0040.0138.09
4.3.70.0020.0098.12
4.3.60.0030.0088.11
4.3.50.0060.0078.11
4.3.40.0020.0168.07
4.3.30.0010.0127.45
4.3.20.0010.0107.44
4.3.10.0030.0097.42
4.3.00.0100.0089.36

preferences:
46.2 ms | 401 KiB | 5 Q