3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Base { public static function __callStatic($method, $args) { if ($method == 'new') echo 'Base::new() called successfully'; } public function __call($method, $args) { if ($method == 'new') echo '$base->new() called successfully'; } } $base = Base::new(); call_user_func(array('Base', 'new')); $base = new Base; $base->new();

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.0060.00916.50
8.3.60.0140.00416.75
8.3.50.0120.00821.99
8.3.40.0060.00918.92
8.3.30.0100.00718.83
8.3.20.0040.00420.30
8.3.10.0050.00323.66
8.3.00.0070.00021.77
8.2.180.0060.01218.29
8.2.170.0110.00422.96
8.2.160.0070.00722.20
8.2.150.0000.00824.18
8.2.140.0060.00324.66
8.2.130.0040.00420.71
8.2.120.0080.00026.35
8.2.110.0060.00321.06
8.2.100.0060.00618.22
8.2.90.0080.00019.17
8.2.80.0090.00017.97
8.2.70.0000.00917.63
8.2.60.0000.00818.05
8.2.50.0060.00318.09
8.2.40.0040.00422.20
8.2.30.0030.00519.48
8.2.20.0000.00917.72
8.2.10.0000.00717.90
8.2.00.0040.00417.86
8.1.280.0170.00025.92
8.1.270.0100.01022.25
8.1.260.0060.00328.09
8.1.250.0060.00328.09
8.1.240.0030.00620.92
8.1.230.0100.00020.31
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0060.00317.00
8.1.190.0050.00317.23
8.1.180.0040.00418.10
8.1.170.0000.01018.55
8.1.160.0070.00020.77
8.1.150.0040.00418.78
8.1.140.0000.00819.63
8.1.130.0000.00817.61
8.1.120.0000.00717.45
8.1.110.0000.00817.45
8.1.100.0030.00517.39
8.1.90.0040.00417.34
8.1.80.0030.00617.44
8.1.70.0000.00717.43
8.1.60.0060.00317.51
8.1.50.0040.00417.48
8.1.40.0050.00317.45
8.1.30.0040.00417.68
8.1.20.0000.00717.62
8.1.10.0040.00417.55
8.1.00.0030.00617.48
8.0.300.0050.00318.77
8.0.290.0040.00416.63
8.0.280.0030.00318.45
8.0.270.0000.00717.19
8.0.260.0060.00017.10
8.0.250.0040.00416.85
8.0.240.0050.00216.79
8.0.230.0040.00416.88
8.0.220.0000.00916.89
8.0.210.0040.00416.76
8.0.200.0000.00716.91
8.0.190.0000.00716.76
8.0.180.0000.00816.72
8.0.170.0070.00016.75
8.0.160.0040.00416.83
8.0.150.0000.00716.85
8.0.140.0070.00016.68
8.0.130.0060.00013.23
8.0.120.0040.00416.84
8.0.110.0030.00516.72
8.0.100.0050.00216.78
8.0.90.0050.00316.80
8.0.80.0110.00416.89
8.0.70.0040.00416.77
8.0.60.0050.00316.84
8.0.50.0040.00416.82
8.0.30.0090.01117.03
8.0.20.0090.00817.40
8.0.10.0050.00216.83
8.0.00.0110.00616.85
7.4.330.0050.00016.85
7.4.320.0060.00016.59
7.4.300.0030.00316.50
7.4.290.0030.00316.43
7.4.280.0070.00016.60
7.4.270.0000.00716.59
7.4.260.0080.00316.63
7.4.250.0040.00416.54
7.4.240.0000.00716.51
7.4.230.0030.00316.66
7.4.220.0060.01216.66
7.4.210.0000.01416.43
7.4.200.0030.00316.54
7.4.160.0150.00416.45
7.4.150.0070.01417.40
7.4.140.0100.00917.86
7.4.130.0030.01516.46
7.4.120.0060.01016.43
7.4.110.0080.00816.35
7.4.100.0100.00716.36
7.4.90.0040.01416.55
7.4.80.0170.00019.39
7.4.70.0100.00916.39
7.4.60.0070.01016.52
7.4.50.0000.01616.64
7.4.40.0080.00816.48
7.4.30.0020.01616.43
7.4.00.0020.01314.94
7.3.330.0020.00213.16
7.3.320.0030.00313.24
7.3.310.0050.00216.22
7.3.300.0000.00716.08
7.3.290.0110.00516.21
7.3.280.0070.01016.26
7.3.270.0130.00617.40
7.3.260.0110.00616.50
7.3.250.0130.00616.37
7.3.240.0110.00616.34
7.3.230.0150.00316.56
7.3.210.0100.00716.48
7.3.200.0090.01219.39
7.3.190.0150.00416.51
7.3.180.0100.01016.34
7.3.170.0090.01016.28
7.3.160.0100.00616.35
7.3.120.0100.00614.69
7.3.110.0070.01014.88
7.3.100.0060.00914.73
7.3.90.0030.01014.67
7.3.80.0060.01014.89
7.3.70.0100.00314.80
7.3.60.0070.00414.72
7.3.50.0070.00714.55
7.3.40.0030.01414.52
7.3.30.0080.00314.83
7.3.20.0070.01016.25
7.3.10.0090.00616.70
7.3.00.0030.01016.26
7.2.330.0080.01216.70
7.2.320.0110.00616.82
7.2.310.0030.01316.84
7.2.300.0120.00916.79
7.2.290.0130.00316.56
7.2.250.0070.01115.17
7.2.240.0070.01314.74
7.2.230.0040.01114.75
7.2.220.0030.01014.73
7.2.210.0070.00714.76
7.2.200.0100.00314.77
7.2.190.0060.00915.12
7.2.180.0030.00614.77
7.2.170.0030.01115.09
7.2.110.0130.01116.06
7.2.60.0000.01716.59
7.2.00.0070.01019.23
7.1.330.0030.01215.78
7.1.320.0100.00715.64
7.1.310.0000.01615.75
7.1.300.0000.00815.43
7.1.290.0070.00415.78
7.1.280.0060.00915.59
7.1.270.0070.00715.38
7.1.260.0030.00615.70
7.1.200.0000.00815.70
7.1.100.0080.00418.00
7.1.70.0050.00317.14
7.1.60.0070.01419.40
7.1.50.0130.00916.74
7.1.00.0030.07722.39
7.0.200.0000.01116.85
7.0.60.0200.06321.75
7.0.50.0070.08717.87
7.0.40.0000.08720.16
7.0.30.0400.07320.22
7.0.20.0370.07720.22
7.0.10.0070.07320.24
7.0.00.0070.08320.23
5.6.280.0000.03321.13
5.6.210.0030.07320.77
5.6.200.0100.05318.16
5.6.190.0100.06020.48
5.6.180.0500.05020.61
5.6.170.0230.07720.55
5.6.160.0100.05320.47
5.6.150.0000.04018.22
5.6.140.0030.08718.19
5.6.130.0030.04018.18
5.6.120.0030.08721.04
5.6.110.0100.08721.12
5.6.100.0130.08321.02
5.6.90.0030.08721.02
5.6.80.0070.06720.29
5.5.350.0300.06720.49
5.5.340.0070.05317.94
5.5.330.0030.05020.43
5.5.320.0530.07020.38
5.5.310.0230.06020.34
5.5.300.0100.08317.96
5.5.290.0100.03717.98
5.5.280.0130.07320.98
5.5.270.0030.04320.88
5.5.260.0170.07020.96
5.5.250.0100.07720.59
5.5.240.0300.06720.37

preferences:
52.41 ms | 401 KiB | 5 Q