3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static function f($c) { $c->m(); return $c; } } class B { public function g($c) { $ret=A::f($c); if($ret===false) { echo "Should never print this\n"; } } } class C { public function m2() { } } $b = new B(); $b->g(new C());

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.0070.01018.43
8.3.50.0120.01021.94
8.3.40.0070.01518.92
8.3.30.0070.01419.22
8.3.20.0040.00420.35
8.3.10.0040.00423.61
8.3.00.0080.00020.79
8.2.180.0150.00616.88
8.2.170.0070.00722.96
8.2.160.0070.00720.35
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0120.00626.16
8.2.120.0040.00419.23
8.2.110.0070.00322.29
8.2.100.0130.00417.72
8.2.90.0000.00919.17
8.2.80.0000.00817.97
8.2.70.0070.00317.38
8.2.60.0040.00817.55
8.2.50.0080.00018.07
8.2.40.0050.00319.76
8.2.30.0040.00418.21
8.2.20.0050.00317.75
8.2.10.0040.00418.07
8.2.00.0040.00417.67
8.1.280.0100.01025.92
8.1.270.0030.00524.02
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0000.00823.86
8.1.230.0070.00318.97
8.1.220.0000.00817.79
8.1.210.0040.00418.77
8.1.200.0080.00017.35
8.1.190.0080.00017.22
8.1.180.0000.00818.10
8.1.170.0110.00018.57
8.1.160.0040.00421.91
8.1.150.0000.00718.54
8.1.140.0040.00417.45
8.1.130.0070.00017.82
8.1.120.0000.00717.44
8.1.110.0080.00017.41
8.1.100.0000.00717.43
8.1.90.0070.00017.39
8.1.80.0030.00517.42
8.1.70.0000.00717.41
8.1.60.0060.00317.61
8.1.50.0040.00417.55
8.1.40.0070.00317.50
8.1.30.0000.00817.65
8.1.20.0000.00717.56
8.1.10.0040.00417.45
8.1.00.0030.00517.40
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0030.00518.42
8.0.270.0000.00717.26
8.0.260.0030.00317.08
8.0.250.0030.00316.95
8.0.240.0000.00716.85
8.0.230.0070.00016.95
8.0.220.0030.00316.87
8.0.210.0040.00416.78
8.0.200.0030.00516.93
8.0.190.0050.00216.96
8.0.180.0040.00416.94
8.0.170.0040.00416.80
8.0.160.0070.00016.97
8.0.150.0000.00716.83
8.0.140.0040.00416.77
8.0.130.0000.00613.25
8.0.120.0040.00416.89
8.0.110.0040.00416.89
8.0.100.0070.00016.96
8.0.90.0050.00217.00
8.0.80.0070.00716.84
8.0.70.0080.00016.88
8.0.60.0000.00716.69
8.0.50.0000.00716.98
8.0.30.0100.00917.18
8.0.20.0090.00917.40
8.0.10.0040.00416.98
8.0.00.0100.00816.94
7.4.330.0030.00315.00
7.4.320.0030.00316.43
7.4.300.0030.00316.68
7.4.290.0060.00316.65
7.4.280.0050.00316.49
7.4.270.0030.00316.65
7.4.260.0100.00016.50
7.4.250.0070.00016.54
7.4.240.0030.00316.59
7.4.230.0040.00416.66
7.4.220.0070.01016.68
7.4.210.0150.00616.69
7.4.200.0030.00316.35
7.4.160.0170.01016.52
7.4.150.0070.01017.40
7.4.140.0090.00817.86
7.4.130.0060.01016.53
7.4.120.0100.00616.48
7.4.110.0100.00716.61
7.4.100.0150.00416.28
7.4.90.0110.00616.34
7.4.80.0130.00319.39
7.4.70.0180.00416.55
7.4.60.0090.00916.38
7.4.50.0000.00816.52
7.4.40.0090.00916.52
7.4.30.0140.01116.56
7.4.00.0070.00715.13
7.3.330.0060.00013.35
7.3.320.0000.00613.36
7.3.310.0060.00316.25
7.3.300.0070.00016.37
7.3.290.0100.00416.47
7.3.280.0010.01616.35
7.3.270.0070.01117.40
7.3.260.0130.00316.46
7.3.250.0100.00816.29
7.3.240.0160.00616.43
7.3.230.0090.00816.39
7.3.210.0060.01116.54
7.3.200.0090.00919.39
7.3.190.0100.00716.54
7.3.180.0100.00616.46
7.3.170.0060.00916.35
7.3.160.0130.00316.41
7.3.120.0030.01014.44
7.3.10.0130.00316.33
7.3.00.0000.01616.33
7.2.330.0110.00516.39
7.2.320.0030.01416.63
7.2.310.0120.00916.61
7.2.300.0100.00716.56
7.2.290.0070.01016.65
7.2.130.0000.00816.64
7.2.120.0140.00316.45
7.2.110.0060.00916.83
7.2.100.0000.01516.61
7.2.90.0060.00916.73
7.2.80.0160.00316.87
7.2.70.0060.00316.76
7.2.60.0080.00716.84
7.2.50.0080.00416.46
7.2.40.0000.01716.86
7.2.30.0030.01316.77
7.2.20.0070.00316.59
7.2.10.0040.01116.88
7.2.00.0060.00818.11
7.1.250.0080.00815.73
7.1.240.0070.00715.71
7.1.230.0000.01115.67
7.1.220.0110.00715.59
7.1.210.0080.00815.53
7.1.200.0030.00815.53
7.1.190.0130.00015.56
7.1.180.0160.00315.56
7.1.170.0060.00615.68
7.1.160.0090.00615.61
7.1.150.0100.00615.82
7.1.140.0030.00615.87
7.1.130.0100.00315.77
7.1.120.0060.00315.81
7.1.110.0050.00515.71
7.1.100.0070.00416.87
7.1.90.0000.01315.48
7.1.80.0030.01015.45
7.1.70.0000.00916.20
7.1.60.0110.00617.70
7.1.50.0110.00716.13
7.1.40.0040.01115.70
7.1.30.0000.01415.67
7.1.20.0100.00715.63
7.1.10.0040.01115.79
7.1.00.0090.03718.99
7.0.330.0140.00015.35
7.0.320.0030.01315.31
7.0.310.0080.00315.25
7.0.300.0100.00715.31
7.0.290.0000.01115.24
7.0.280.0090.00615.51
7.0.270.0110.00415.35
7.0.260.0030.01015.25
7.0.250.0030.00515.52
7.0.240.0060.00615.05
7.0.230.0060.00615.57
7.0.220.0150.00415.29
7.0.210.0000.01215.45
7.0.200.0050.00516.11
7.0.190.0110.00415.41
7.0.180.0070.00315.13
7.0.170.0000.01015.42
7.0.160.0070.00715.32
7.0.150.0000.01015.41
7.0.140.0030.04018.72
7.0.130.0000.00815.06
7.0.120.0120.00015.49
7.0.110.0060.00615.20
7.0.100.0100.02217.69
7.0.90.0080.02317.46
7.0.80.0030.02317.41
7.0.70.0070.02217.64
7.0.60.0090.02017.72
7.0.50.0060.02717.89
7.0.40.0080.02016.62
7.0.30.0050.03216.67
7.0.20.0060.02516.78
7.0.10.0000.02616.72
7.0.00.0080.03716.80
5.6.380.0100.00314.26
5.6.370.0120.00314.08
5.6.360.0040.00414.20
5.6.350.0000.01314.04
5.6.340.0060.00614.35
5.6.330.0030.01014.42
5.6.320.0070.00714.31
5.6.310.0040.00714.34
5.6.300.0030.01014.47
5.6.290.0040.00814.11
5.6.280.0060.03817.70
5.6.270.0070.00313.98
5.6.260.0030.00813.98
5.6.250.0070.02217.38
5.6.240.0020.02517.44
5.6.230.0060.02017.42
5.6.220.0050.02317.29
5.6.210.0060.02317.36
5.6.200.0030.03817.58
5.6.190.0030.02317.68
5.6.180.0030.02517.64
5.6.170.0030.02617.59
5.6.160.0020.02617.67
5.6.150.0030.02517.54
5.6.140.0050.02217.58
5.6.130.0030.02417.70
5.6.120.0050.03817.74
5.6.110.0050.02917.63
5.6.100.0050.03817.78
5.6.90.0100.02017.76
5.6.80.0020.02517.29
5.6.70.0040.03017.19
5.6.60.0030.02317.32
5.6.50.0120.03817.30
5.6.40.0080.03017.16
5.6.30.0090.02617.23
5.6.20.0130.03317.19
5.6.10.0070.03917.26
5.6.00.0080.04017.28
5.5.380.0030.02715.84
5.5.370.0030.02515.81
5.5.360.0050.02515.97
5.5.350.0060.02015.73
5.5.340.0020.02515.85
5.5.330.0080.02015.97
5.5.320.0050.02215.89
5.5.310.0090.03415.99
5.5.300.0030.02215.90
5.5.290.0020.02715.89
5.5.280.0020.02516.06
5.5.270.0050.02215.98
5.5.260.0020.02415.80
5.5.250.0050.02015.87
5.5.240.0000.02915.58
5.5.230.0090.02315.46
5.5.220.0050.04415.46
5.5.210.0070.03615.72
5.5.200.0030.04615.63
5.5.190.0070.03715.49
5.5.180.0120.03515.66
5.5.170.0060.00011.06
5.5.160.0090.04015.69
5.5.150.0050.04615.61
5.5.140.0080.04215.47
5.5.130.0070.03515.58
5.5.120.0050.02615.60
5.5.110.0070.04215.74
5.5.100.0030.04315.63
5.5.90.0070.04015.66
5.5.80.0010.02915.61
5.5.70.0050.02715.53
5.5.60.0020.03615.70
5.5.50.0040.03715.45
5.5.40.0050.03415.42
5.5.30.0080.04315.45
5.5.20.0030.04515.45
5.5.10.0080.03815.56
5.5.00.0100.04015.42
5.4.450.0070.02115.07
5.4.440.0050.03315.21
5.4.430.0030.02214.89
5.4.420.0030.02215.18
5.4.410.0040.02015.05
5.4.400.0020.02814.95
5.4.390.0030.03814.88
5.4.380.0050.02214.76
5.4.370.0050.02514.96
5.4.360.0040.04414.91
5.4.350.0110.02815.13
5.4.340.0050.03014.90
5.4.330.0080.00310.66
5.4.320.0050.04014.88
5.4.310.0080.02514.86
5.4.300.0040.03514.69
5.4.290.0050.03115.00
5.4.280.0050.04414.87
5.4.270.0080.03714.89
5.4.260.0050.02314.97
5.4.250.0050.04214.89
5.4.240.0080.04014.93
5.4.230.0050.04015.00
5.4.220.0060.02514.80
5.4.210.0050.04214.89
5.4.200.0030.02614.79
5.4.190.0050.04014.95
5.4.180.0050.03814.88
5.4.170.0030.03914.94
5.4.160.0110.02814.98
5.4.150.0050.04014.85
5.4.140.0060.03313.71
5.4.130.0070.04013.76
5.4.120.0100.03113.67
5.4.110.0110.03613.56
5.4.100.0030.03813.58
5.4.90.0030.03313.82
5.4.80.0020.03713.52
5.4.70.0070.04213.73
5.4.60.0030.02713.57
5.4.50.0050.03413.52
5.4.40.0030.04113.66
5.4.30.0030.03913.67
5.4.20.0050.04013.71
5.4.10.0020.04413.73
5.4.00.0030.02913.34
5.3.290.0070.02412.59
5.3.280.0090.03312.54
5.3.270.0020.02512.49
5.3.260.0030.04312.61
5.3.250.0120.03312.56
5.3.240.0050.03812.54
5.3.230.0030.04312.51
5.3.220.0080.04012.43
5.3.210.0050.04312.60
5.3.200.0050.04212.44
5.3.190.0100.03812.46
5.3.180.0080.03812.58
5.3.170.0020.04212.47
5.3.160.0110.03512.56
5.3.150.0030.03712.62
5.3.140.0110.03312.44
5.3.130.0050.03912.50
5.3.120.0050.03912.63
5.3.110.0030.04412.48
5.3.100.0030.03612.40
5.3.90.0120.02812.32
5.3.80.0030.04012.29
5.3.70.0080.04312.35
5.3.60.0080.03312.15
5.3.50.0050.04212.33
5.3.40.0030.02312.19
5.3.30.0020.02812.29
5.3.20.0030.03312.09
5.3.10.0070.02212.07
5.3.00.0050.02112.01
5.2.170.0050.03510.79
5.2.160.0050.03110.87
5.2.150.0080.03010.90
5.2.140.0050.03510.83
5.2.130.0050.03210.88
5.2.120.0030.03410.89
5.2.110.0030.03310.93
5.2.100.0050.03510.92
5.2.90.0050.01810.75
5.2.80.0030.02010.75
5.2.70.0030.03510.83
5.2.60.0050.02710.80
5.2.50.0020.01810.77
5.2.40.0060.02910.86
5.2.30.0050.03110.85
5.2.20.0060.02010.79
5.2.10.0050.03010.75
5.2.00.0090.02310.75
5.1.60.0000.03110.75
5.1.50.0070.02010.75
5.1.40.0030.02810.75
5.1.30.0050.02610.75
5.1.20.0020.03310.75
5.1.10.0050.02410.75
5.1.00.0110.02510.75
5.0.50.0030.02410.75
5.0.40.0030.02410.75
5.0.30.0050.02710.75
5.0.20.0010.02510.75
5.0.10.0020.02610.75
5.0.00.0020.03310.75
4.4.90.0020.01810.75
4.4.80.0020.02010.75
4.4.70.0050.01510.75
4.4.60.0020.02110.75
4.4.50.0000.02010.75
4.4.40.0030.02710.75
4.4.30.0000.01310.75
4.4.20.0060.01710.75
4.4.10.0020.02310.75
4.4.00.0000.02910.75
4.3.110.0020.02010.75
4.3.100.0000.02010.75
4.3.90.0000.02010.75
4.3.80.0020.03010.75
4.3.70.0000.02110.75
4.3.60.0000.02010.75
4.3.50.0050.01710.75
4.3.40.0000.01410.75
4.3.30.0010.01110.75
4.3.20.0030.01010.75
4.3.10.0000.01510.75
4.3.00.0040.01810.75

preferences:
41.87 ms | 401 KiB | 5 Q