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 m() { return false; } } $b = new B(); $b->g(null);

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.40.0140.00018.54
8.3.30.0090.00618.84
8.3.20.0060.00318.73
8.3.10.0040.00418.85
8.3.00.0070.00317.75
8.2.170.0140.00022.96
8.2.160.0100.00721.02
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0030.00720.89
8.2.110.0090.00020.39
8.2.100.0110.00017.59
8.2.90.0000.00819.16
8.2.80.0080.00019.28
8.2.70.0050.00317.50
8.2.60.0000.00817.80
8.2.50.0040.00418.07
8.2.40.0000.00717.97
8.2.30.0070.00017.92
8.2.20.0060.00317.64
8.2.10.0040.00417.67
8.2.00.0050.00317.76
8.1.270.0040.00424.66
8.1.260.0130.00626.35
8.1.250.0050.00328.09
8.1.240.0100.00022.01
8.1.230.0040.00720.81
8.1.220.0000.00818.77
8.1.210.0080.00019.07
8.1.200.0060.00317.35
8.1.190.0040.00417.55
8.1.180.0080.00018.10
8.1.170.0000.00718.82
8.1.160.0040.00418.81
8.1.150.0040.00418.53
8.1.140.0040.00417.38
8.1.130.0000.00717.73
8.1.120.0030.00317.43
8.1.110.0030.00517.29
8.1.100.0070.00017.36
8.1.90.0000.00717.41
8.1.80.0050.00217.38
8.1.70.0000.00717.41
8.1.60.0060.00317.51
8.1.50.0040.00417.41
8.1.40.0050.00217.44
8.1.30.0000.00717.63
8.1.20.0050.00217.66
8.1.10.0000.00817.51
8.1.00.0000.00817.56
8.0.300.0070.00019.81
8.0.290.0050.00216.88
8.0.280.0040.00418.38
8.0.270.0070.00017.26
8.0.260.0070.00016.89
8.0.250.0050.00316.95
8.0.240.0070.00016.95
8.0.230.0020.00517.02
8.0.220.0040.00416.90
8.0.210.0030.00316.90
8.0.200.0080.00016.96
8.0.190.0090.00016.96
8.0.180.0040.00816.89
8.0.170.0030.00616.88
8.0.160.0000.00716.90
8.0.150.0040.00416.73
8.0.140.0040.00416.84
8.0.130.0000.00513.29
8.0.120.0000.00816.85
8.0.110.0040.00416.86
8.0.100.0030.00317.00
8.0.90.0030.00516.98
8.0.80.0140.00716.78
8.0.70.0040.00416.99
8.0.60.0000.00716.83
8.0.50.0070.00016.80
8.0.30.0170.00716.94
8.0.20.0110.00916.87
8.0.10.0000.00816.95
8.0.00.0090.01216.82
7.4.330.0020.00213.01
7.4.320.0030.00316.46
7.4.300.0060.00016.50
7.4.290.0040.00416.50
7.4.280.0050.00316.66
7.4.270.0000.00816.54
7.4.260.0050.00013.27
7.4.250.0040.00416.64
7.4.240.0040.00416.51
7.4.230.0000.00716.54
7.4.220.0070.01816.38
7.4.210.0070.00716.49
7.4.200.0030.00316.39
7.4.190.0000.00716.70
7.4.160.0100.00616.49
7.4.150.0190.00016.53
7.4.140.0090.01016.46
7.4.130.0080.00916.56
7.4.120.0090.01216.47
7.4.110.0090.00616.58
7.4.100.0140.00516.36
7.4.90.0160.00616.41
7.4.80.0070.01019.39
7.4.70.0100.00616.60
7.4.60.0040.01216.44
7.4.50.0090.00316.34
7.4.40.0070.01016.47
7.4.30.0060.01216.51
7.4.00.0050.01014.98
7.3.330.0000.00613.23
7.3.320.0060.00013.15
7.3.310.0000.00716.39
7.3.300.0000.00716.19
7.3.290.0090.00616.41
7.3.280.0100.00516.36
7.3.270.0130.00716.54
7.3.260.0080.01416.41
7.3.250.0140.00316.45
7.3.240.0030.01216.26
7.3.230.0110.00616.57
7.3.210.0120.00916.32
7.3.200.0030.01216.62
7.3.190.0070.01016.29
7.3.180.0110.00616.38
7.3.170.0140.00516.47
7.3.160.0040.01216.34
7.3.120.0050.01214.81
7.3.110.0040.01414.59
7.3.100.0060.00914.80
7.3.90.0130.00614.91
7.3.80.0060.00914.95
7.3.70.0100.00014.77
7.3.60.0090.00314.83
7.3.50.0110.00414.96
7.3.40.0030.00914.97
7.3.30.0070.00314.78
7.3.20.0060.00916.62
7.3.10.0050.01016.35
7.3.00.0060.00616.44
7.2.330.0000.01716.52
7.2.320.0120.00416.55
7.2.310.0070.01116.36
7.2.300.0070.01016.42
7.2.290.0040.01516.70
7.2.250.0070.01415.13
7.2.240.0000.02014.89
7.2.230.0000.01414.94
7.2.220.0040.00914.94
7.2.210.0090.00614.99
7.2.200.0030.00615.11
7.2.190.0060.00915.00
7.2.180.0090.00914.93
7.2.170.0000.01114.88
7.2.130.0090.00716.88
7.2.120.0080.00816.78
7.2.110.0050.01116.81
7.2.100.0050.00716.68
7.2.90.0060.01316.96
7.2.80.0080.00916.88
7.2.70.0110.00516.74
7.2.60.0020.01216.85
7.2.50.0070.00916.84
7.2.40.0020.01316.85
7.2.30.0100.00416.90
7.2.20.0090.00616.76
7.2.10.0100.00516.85
7.2.00.0060.00817.59
7.1.330.0080.00415.52
7.1.320.0120.00615.50
7.1.310.0070.00715.79
7.1.300.0030.00615.73
7.1.290.0030.00615.82
7.1.280.0000.00915.75
7.1.270.0060.00615.69
7.1.260.0070.00715.60
7.1.250.0080.00715.62
7.1.240.0040.01115.68
7.1.230.0130.00615.42
7.1.220.0040.00715.75
7.1.210.0100.00715.57
7.1.200.0040.01115.60
7.1.190.0040.00715.57
7.1.180.0090.00615.78
7.1.170.0030.00615.62
7.1.160.0120.00315.63
7.1.150.0090.00315.73
7.1.140.0110.00415.78
7.1.130.0060.01015.65
7.1.120.0070.00715.45
7.1.110.0090.00615.52
7.1.100.0070.00716.85
7.1.90.0110.00715.13
7.1.80.0080.00815.38
7.1.70.0100.00316.29
7.1.60.0060.01317.36
7.1.50.0170.01025.04
7.1.40.0030.01015.46
7.1.30.0100.00715.73
7.1.20.0070.01015.60
7.1.10.0030.01315.71
7.1.00.0060.02118.97
7.0.330.0160.00315.25
7.0.320.0100.00615.29
7.0.310.0040.01115.11
7.0.300.0070.00715.48
7.0.290.0110.00715.24
7.0.280.0030.01014.87
7.0.270.0060.00315.19
7.0.260.0070.00714.85
7.0.250.0110.00715.54
7.0.240.0070.00715.14
7.0.230.0120.00314.85
7.0.220.0070.00315.16
7.0.210.0070.00215.30
7.0.200.0130.00815.11
7.0.190.0100.00715.34
7.0.180.0130.00315.06
7.0.170.0120.00015.21
7.0.160.0060.00615.31
7.0.150.0110.00615.25
7.0.140.0090.03718.55
7.0.130.0070.00715.20
7.0.120.0010.02318.67
7.0.110.0060.00915.22
7.0.100.0130.00615.27
7.0.90.0060.00915.16
7.0.80.0080.00815.23
7.0.70.0090.00915.23
7.0.60.0090.02318.59
7.0.50.0140.01516.64
7.0.40.0050.02816.53
7.0.30.0160.04416.73
7.0.20.0120.04516.80
7.0.10.0110.03016.49
7.0.00.0070.03016.69
5.6.380.0040.01214.15
5.6.370.0060.00914.03
5.6.360.0030.01014.51
5.6.350.0070.01014.52
5.6.340.0070.00414.38
5.6.330.0030.01014.13
5.6.320.0100.00314.27
5.6.310.0070.00314.21
5.6.300.0040.00714.22
5.6.290.0000.01114.35
5.6.280.0020.03917.55
5.6.270.0030.01014.65
5.6.260.0000.01014.22
5.6.250.0040.00714.37
5.6.240.0000.01114.16
5.6.230.0070.00514.43
5.6.220.0020.00714.01
5.6.210.0070.03717.27
5.6.200.0060.03316.13
5.6.190.0080.03317.39
5.6.180.0080.04017.40
5.6.170.0100.03217.35
5.6.160.0080.04217.26
5.6.150.0020.03316.17
5.6.140.0070.04516.11
5.6.130.0050.04116.20
5.6.120.0120.04017.54
5.6.110.0080.04317.49
5.6.100.0130.03817.64
5.6.90.0100.04317.66
5.6.80.0070.03017.22
5.6.70.0100.00814.23
5.6.60.0040.00714.18
5.6.50.0060.00614.17
5.6.40.0060.00914.15
5.6.30.0040.01514.38
5.6.20.0030.00813.85
5.6.10.0080.00613.87
5.6.00.0040.00413.85
5.5.380.0000.01311.03
5.5.370.0040.01111.11
5.5.360.0080.00611.19
5.5.350.0150.04515.71
5.5.340.0070.03214.60
5.5.330.0080.04715.87
5.5.320.0180.03615.56
5.5.310.0150.04415.75
5.5.300.0120.03314.62
5.5.290.0100.03714.59
5.5.280.0030.03816.11
5.5.270.0090.04315.96
5.5.260.0160.03816.13
5.5.250.0060.02615.68
5.5.240.0040.01915.58
5.5.230.0110.00511.05
5.5.220.0060.00011.14
5.5.210.0000.01110.63
5.5.200.0000.00510.80
5.5.190.0060.00310.74
5.5.180.0000.00810.58
5.5.170.0030.00610.71
5.5.160.0070.00311.04
5.5.150.0040.00811.05
5.5.140.0000.00910.98
5.5.130.0070.00310.82
5.5.120.0030.00911.02
5.5.110.0080.00010.79
5.5.100.0030.00511.09
5.5.90.0000.00810.87
5.5.80.0060.00611.07
5.5.70.0070.00411.17
5.5.60.0030.00911.17
5.5.50.0050.00311.19
5.5.40.0040.00810.87
5.5.30.0060.00611.14
5.5.20.0070.00310.91
5.5.10.0060.00310.86
5.5.00.0100.00310.71
5.4.450.0060.04015.19
5.4.440.0070.04014.98
5.4.430.0000.03915.31
5.4.420.0020.03115.21
5.4.410.0060.02415.12
5.4.400.0110.03015.08
5.4.390.0050.03015.14
5.4.380.0040.03114.90
5.4.370.0050.02314.83
5.4.360.0120.02214.91
5.4.350.0020.02014.89
5.4.340.0020.03914.96
5.4.330.0030.00610.91
5.4.320.0000.04315.01
5.4.310.0050.03014.99
5.4.300.0050.03815.04
5.4.290.0030.03915.05
5.4.280.0050.03014.92
5.4.270.0020.03515.14
5.4.260.0020.03515.09
5.4.250.0020.04014.94
5.4.240.0050.02514.81
5.4.230.0070.03714.98
5.4.220.0060.04014.83
5.4.210.0030.04415.02
5.4.200.0030.02614.87
5.4.190.0060.02715.10
5.4.180.0050.02814.98
5.4.170.0040.02515.12
5.4.160.0030.04015.10
5.4.150.0030.03015.00
5.4.140.0060.02913.56
5.4.130.0040.03213.58
5.4.120.0090.03613.63
5.4.110.0000.04113.78
5.4.100.0070.02013.66
5.4.90.0080.01813.74
5.4.80.0000.04113.90
5.4.70.0060.03913.79
5.4.60.0020.04013.66
5.4.50.0080.02413.46
5.4.40.0050.02613.79
5.4.30.0010.04013.75
5.4.20.0050.03913.55
5.4.10.0100.03113.59
5.4.00.0080.03313.21
5.3.290.0040.04312.67
5.3.280.0040.03112.35
5.3.270.0050.02812.61
5.3.260.0020.02712.63
5.3.250.0100.03812.57
5.3.240.0090.02312.51
5.3.230.0060.04012.52
5.3.220.0040.04912.38
5.3.210.0090.02412.56
5.3.200.0090.02412.55
5.3.190.0060.02312.52
5.3.180.0000.04412.47
5.3.170.0070.04012.59
5.3.160.0070.03512.63
5.3.150.0050.04212.55
5.3.140.0020.04412.67
5.3.130.0050.03412.52
5.3.120.0050.02512.59
5.3.110.0070.03712.54
5.3.100.0040.04312.32
5.3.90.0040.03812.33
5.3.80.0040.03712.24
5.3.70.0030.03612.32
5.3.60.0030.03612.17
5.3.50.0040.04112.31
5.3.40.0120.01812.24
5.3.30.0030.02512.21
5.3.20.0020.02112.10
5.3.10.0000.02311.91
5.3.00.0100.01911.85
5.2.170.0060.03110.91
5.2.160.0040.02910.91
5.2.150.0060.01810.91
5.2.140.0030.01910.91
5.2.130.0020.01710.91
5.2.120.0020.01710.91
5.2.110.0050.01610.91
5.2.100.0050.01610.91
5.2.90.0050.01710.91
5.2.80.0000.01910.91
5.2.70.0060.01510.91
5.2.60.0040.01410.91
5.2.50.0020.01610.91
5.2.40.0030.01710.91
5.2.30.0040.01610.91
5.2.20.0050.02410.91
5.2.10.0060.02010.91
5.2.00.0100.01610.91
5.1.60.0110.02610.91
5.1.50.0050.02710.91
5.1.40.0090.01010.91
5.1.30.0050.01710.91
5.1.20.0120.01510.91
5.1.10.0070.01510.91
5.1.00.0070.01810.91
5.0.50.0050.01210.91
5.0.40.0010.01310.91
5.0.30.0000.01910.91
5.0.20.0030.01310.91
5.0.10.0070.01010.91
5.0.00.0040.01510.91
4.4.90.0020.00910.91
4.4.80.0000.00910.91
4.4.70.0030.00810.91
4.4.60.0010.00810.91
4.4.50.0030.02010.91
4.4.40.0030.01710.91
4.4.30.0020.01910.91
4.4.20.0040.00710.91
4.4.10.0020.01010.91
4.4.00.0030.01110.91
4.3.110.0030.00910.91
4.3.100.0000.01110.91
4.3.90.0030.00810.91
4.3.80.0000.01510.91
4.3.70.0020.00910.91
4.3.60.0040.00810.91
4.3.50.0030.00910.91
4.3.40.0030.01410.91
4.3.30.0030.01810.91
4.3.20.0010.00810.91
4.3.10.0000.01010.91
4.3.00.0060.00710.91

preferences:
46.23 ms | 400 KiB | 5 Q