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('Call to undefined method '.__METHOD__); } 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.40.0120.00318.74
8.3.30.0090.00618.76
8.3.20.0040.00420.33
8.3.10.0040.00823.71
8.3.00.0070.00319.56
8.2.170.0130.00322.96
8.2.160.0090.00919.04
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0080.00019.32
8.2.120.0080.00026.35
8.2.110.0030.00619.30
8.2.100.0080.00417.90
8.2.90.0040.00419.17
8.2.80.0080.00017.97
8.2.70.0080.00017.80
8.2.60.0040.00417.91
8.2.50.0040.00418.10
8.2.40.0030.00520.59
8.2.30.0070.00019.20
8.2.20.0040.00418.02
8.2.10.0040.00417.99
8.2.00.0040.00418.14
8.1.270.0050.00222.22
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0060.00322.20
8.1.230.0080.00420.82
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0000.00917.38
8.1.190.0030.00517.22
8.1.180.0060.00318.10
8.1.170.0000.00818.86
8.1.160.0040.00418.88
8.1.150.0040.00418.64
8.1.140.0000.01119.46
8.1.130.0070.00018.85
8.1.120.0040.00317.25
8.1.110.0090.00017.29
8.1.100.0030.00517.34
8.1.90.0040.00417.37
8.1.80.0070.00017.22
8.1.70.0030.00317.33
8.1.60.0080.00417.43
8.1.50.0050.00317.46
8.1.40.0070.00417.41
8.1.30.0030.00617.57
8.1.20.0000.00817.47
8.1.10.0040.00417.49
8.1.00.0040.00417.52
8.0.300.0000.00721.55
8.0.290.0040.00416.63
8.0.280.0050.00318.29
8.0.270.0030.00317.16
8.0.260.0000.00616.69
8.0.250.0000.00616.89
8.0.240.0070.00016.94
8.0.230.0000.00816.88
8.0.220.0040.00416.73
8.0.210.0000.00716.72
8.0.200.0040.00416.85
8.0.190.0000.00916.78
8.0.180.0030.00516.92
8.0.170.0000.00816.90
8.0.160.0030.00316.73
8.0.150.0040.00416.88
8.0.140.0030.00316.76
8.0.130.0050.00013.13
8.0.120.0000.00816.83
8.0.110.0040.00416.95
8.0.100.0000.00716.89
8.0.90.0000.00716.66
8.0.80.0060.01616.73
8.0.70.0040.00416.81
8.0.60.0070.00016.65
8.0.50.0000.00716.81
8.0.30.0060.01516.91
8.0.20.0070.01417.40
8.0.10.0000.00716.76
8.0.00.0040.01216.69
7.4.330.0000.00715.55
7.4.320.0080.00016.43
7.4.300.0030.00316.52
7.4.290.0030.00516.55
7.4.280.0040.00416.57
7.4.270.0070.00016.65
7.4.260.0070.00016.50
7.4.250.0000.00716.50
7.4.240.0050.00216.52
7.4.230.0080.00016.63
7.4.220.0180.00916.62
7.4.210.0060.01516.54
7.4.200.0040.00416.59
7.4.160.0120.00516.42
7.4.150.0230.00317.40
7.4.140.0090.01117.86
7.4.130.0120.00816.41
7.4.120.0150.00816.39
7.4.110.0130.00316.59
7.4.100.0170.00316.42
7.4.90.0040.01716.70
7.4.80.0070.01019.39
7.4.70.0170.00716.57
7.4.60.0070.01416.53
7.4.50.0060.01216.25
7.4.40.0130.01016.55
7.4.30.0100.00616.67
7.4.00.0040.01114.76
7.3.330.0050.00013.27
7.3.320.0030.00313.11
7.3.310.0080.00016.18
7.3.300.0030.00616.32
7.3.290.0090.00816.29
7.3.280.0140.00816.29
7.3.270.0060.01217.40
7.3.260.0100.01116.32
7.3.250.0100.00716.26
7.3.240.0110.00716.40
7.3.230.0060.01616.35
7.3.210.0000.01716.19
7.3.200.0070.01016.35
7.3.190.0060.01016.45
7.3.180.0090.00616.48
7.3.170.0070.01316.19
7.3.160.0060.00916.47
7.2.330.0160.00716.75
7.2.320.0100.00716.61
7.2.310.0060.00916.36
7.2.300.0120.00616.30
7.2.290.0140.00916.30
7.2.60.0070.00716.87
7.2.00.0030.00918.95
7.1.200.0000.01115.47
7.1.100.0060.00617.82
7.1.70.0890.01616.86
7.1.60.0210.01434.92
7.1.50.0260.01334.59
7.1.40.0280.01234.42
7.1.30.0250.01734.48
7.1.20.0330.00734.50
7.1.10.0050.01116.59
7.1.00.0000.01816.52
7.0.200.0080.00816.70
7.0.190.0040.01216.64
7.0.180.0100.01016.00
7.0.170.0080.00616.30
7.0.160.0000.01916.18
7.0.150.0070.00716.14
7.0.140.0040.01316.26
7.0.130.0070.01016.34
7.0.120.0030.01416.50
7.0.110.0000.01616.27
7.0.100.0050.00916.21
7.0.90.0130.00616.32
7.0.80.0040.01216.42
7.0.70.0030.01416.34
7.0.60.0080.00616.29
7.0.50.0110.00816.35
7.0.40.0030.01216.23
7.0.30.0100.00516.63
7.0.20.0000.01716.45
7.0.10.0060.01116.43
7.0.00.0090.00816.14

preferences:
39.74 ms | 400 KiB | 5 Q