3v4l.org

run code in 300+ PHP versions simultaneously
<?php class JsonSerializer { public static function serialize($value) { var_dump($value); } public function __call($method, $args) { if ('serialize' !== strtolower('serialize')) { throw new \BadMethodCallException('...'); } return self::serialize(...$args); } } JsonSerializer::serialize('foo'); (new JsonSerializer())->serialize('bar'); (new JsonSerializer())->baz('qux');

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.0060.00916.63
8.3.50.0040.01116.63
8.3.40.0110.00318.68
8.3.30.0110.00418.57
8.3.20.0080.00020.34
8.3.10.0090.00021.90
8.3.00.0040.00419.56
8.2.180.0140.00718.16
8.2.170.0040.01122.96
8.2.160.0090.00918.96
8.2.150.0150.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00419.21
8.2.120.0040.00426.35
8.2.110.0070.01421.06
8.2.100.0040.00817.72
8.2.90.0030.00617.77
8.2.80.0000.00817.97
8.2.70.0040.00417.80
8.2.60.0040.00417.91
8.2.50.0040.00418.10
8.2.40.0070.00020.40
8.2.30.0000.00819.19
8.2.20.0030.00518.00
8.2.10.0040.00417.88
8.2.00.0000.00717.91
8.1.280.0130.00625.92
8.1.270.0000.00822.23
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0040.00417.23
8.1.230.0090.00322.77
8.1.220.0080.00021.02
8.1.210.0050.00318.77
8.1.200.0030.00617.22
8.1.190.0040.00417.10
8.1.180.0000.00818.10
8.1.170.0090.00018.71
8.1.160.0000.00718.91
8.1.150.0040.00420.43
8.1.140.0090.00019.45
8.1.130.0030.00318.72
8.1.120.0000.00817.23
8.1.110.0070.00017.26
8.1.100.0040.00417.38
8.1.90.0040.00417.40
8.1.80.0040.00417.32
8.1.70.0070.00017.32
8.1.60.0030.00617.41
8.1.50.0020.00517.48
8.1.40.0040.00417.36
8.1.30.0040.00417.54
8.1.20.0030.00617.59
8.1.10.0070.00017.45
8.1.00.0000.00717.46
8.0.300.0000.00721.95
8.0.290.0000.00816.75
8.0.280.0030.00318.29
8.0.270.0070.00017.27
8.0.260.0070.00018.30
8.0.250.0030.00316.84
8.0.240.0030.00316.88
8.0.230.0030.00316.77
8.0.220.0030.00316.75
8.0.210.0000.00816.80
8.0.200.0070.00016.79
8.0.190.0040.00416.95
8.0.180.0050.00216.82
8.0.170.0040.00416.72
8.0.160.0030.00316.93
8.0.150.0040.00416.76
8.0.140.0040.00416.68
8.0.130.0030.00313.29
8.0.120.0040.00416.84
8.0.110.0040.00416.84
8.0.100.0040.00416.80
8.0.90.0080.00016.84
8.0.80.0060.00916.78
8.0.70.0080.00016.65
8.0.60.0040.00416.64
8.0.50.0000.00716.59
8.0.30.0110.00816.97
8.0.20.0150.00517.40
8.0.10.0050.00316.71
8.0.00.0030.01516.84
7.4.330.0030.00315.55
7.4.320.0000.00616.50
7.4.300.0030.00316.60
7.4.290.0070.00016.63
7.4.280.0040.00416.51
7.4.270.0000.00716.45
7.4.260.0070.00016.48
7.4.250.0000.00716.46
7.4.240.0030.00316.61
7.4.230.0000.00616.60
7.4.220.0100.00916.54
7.4.210.0070.00716.62
7.4.200.0000.00716.39
7.4.160.0110.00616.37
7.4.150.0110.00717.40
7.4.140.0130.00517.86
7.4.130.0070.01716.46
7.4.120.0120.00816.45
7.4.110.0160.00316.35
7.4.100.0060.01216.39
7.4.90.0160.00016.50
7.4.80.0140.00919.39
7.4.70.0080.01216.45
7.4.60.0100.00616.39
7.4.50.0060.00616.57
7.4.40.0190.00016.33
7.4.30.0040.01916.60
7.4.00.0090.00614.91
7.3.330.0060.00013.20
7.3.320.0020.00213.23
7.3.310.0000.00716.15
7.3.300.0070.00016.31
7.3.290.0090.00416.32
7.3.280.0060.00916.29
7.3.270.0000.01817.40
7.3.260.0030.01516.29
7.3.250.0120.00516.32
7.3.240.0080.00916.43
7.3.230.0090.00916.50
7.3.210.0100.00716.40
7.3.200.0000.01716.22
7.3.190.0050.01116.27
7.3.180.0120.00316.39
7.3.170.0060.01316.36
7.3.160.0170.00616.13
7.3.10.0040.00916.62
7.3.00.0070.00616.58
7.2.330.0070.01416.49
7.2.320.0130.01016.39
7.2.310.0100.00616.64
7.2.300.0170.00316.64
7.2.290.0070.01516.18
7.2.130.0060.00616.77
7.2.120.0020.01016.78
7.2.110.0060.00616.62
7.2.100.0110.00316.91
7.2.90.0030.01016.68
7.2.80.0070.00616.56
7.2.70.0040.00916.96
7.2.60.0030.00816.70
7.2.50.0020.01016.72
7.2.40.0040.00916.87
7.2.30.0060.00816.83
7.2.20.0080.00516.79
7.2.10.0040.00916.69
7.2.00.0040.00917.51
7.1.250.0050.00715.72
7.1.200.0060.00615.47
7.1.100.0040.00718.04
7.1.70.0090.01015.37
7.1.60.0210.01433.17
7.1.50.0770.01533.00
7.1.40.0100.02432.45
7.1.30.0260.01134.60
7.1.20.0190.01634.57
7.1.10.0560.01216.57
7.1.00.0480.01114.61
7.0.200.0870.01814.85
7.0.190.0000.01616.41
7.0.180.0100.00714.34
7.0.170.0570.00414.55
7.0.160.0140.00314.63
7.0.150.0120.00414.55
7.0.140.0640.00714.40
7.0.130.0490.01116.46
7.0.120.0070.01116.22
7.0.110.0440.01914.40
7.0.100.0530.00916.23
7.0.90.0500.00914.55
7.0.80.0570.01216.37
7.0.70.0580.01514.43
7.0.60.0610.01414.38
7.0.50.0060.01216.36
7.0.40.0120.00516.68
7.0.30.0110.00816.68
7.0.20.0500.01316.31
7.0.10.0300.01116.14
7.0.00.0050.01516.42

preferences:
39.57 ms | 401 KiB | 5 Q