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); } } $serializer = new JsonSerializer(); $serializer->serialize('foo'); JsonSerializer::serialize('bar');

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.0180.00416.75
8.3.50.0070.00716.64
8.3.40.0070.00718.59
8.3.30.0110.00418.54
8.3.20.0070.00020.16
8.3.10.0030.00621.47
8.3.00.0030.00619.66
8.2.180.0170.00018.54
8.2.170.0100.00722.96
8.2.160.0040.01222.21
8.2.150.0150.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00719.29
8.2.120.0080.00026.35
8.2.110.0060.00320.91
8.2.100.0080.00317.79
8.2.90.0040.00417.50
8.2.80.0090.00017.97
8.2.70.0040.00417.80
8.2.60.0030.00618.22
8.2.50.0090.00018.10
8.2.40.0040.00420.42
8.2.30.0080.00019.32
8.2.20.0050.00218.07
8.2.10.0050.00217.96
8.2.00.0040.00417.87
8.1.280.0090.00925.92
8.1.270.0030.00623.99
8.1.260.0000.00926.35
8.1.250.0080.00028.09
8.1.240.0040.00817.36
8.1.230.0060.00617.83
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0050.00517.23
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0000.00818.34
8.1.160.0000.00718.98
8.1.150.0070.00018.71
8.1.140.0000.00719.47
8.1.130.0050.00218.80
8.1.120.0000.00717.43
8.1.110.0030.00617.34
8.1.100.0000.00817.32
8.1.90.0000.00817.29
8.1.80.0000.00717.34
8.1.70.0000.00717.28
8.1.60.0080.00017.64
8.1.50.0000.00817.45
8.1.40.0000.00817.46
8.1.30.0000.00817.53
8.1.20.0040.00417.55
8.1.10.0040.00417.45
8.1.00.0000.00817.41
8.0.300.0040.00418.77
8.0.290.0050.00216.63
8.0.280.0000.00718.34
8.0.270.0070.00017.11
8.0.260.0030.00316.73
8.0.250.0030.00316.81
8.0.240.0020.00516.93
8.0.230.0000.00816.91
8.0.220.0000.00716.85
8.0.210.0030.00516.72
8.0.200.0040.00416.82
8.0.190.0090.00016.85
8.0.180.0000.00716.84
8.0.170.0070.00016.78
8.0.160.0000.00716.90
8.0.150.0030.00316.83
8.0.140.0070.00016.69
8.0.130.0030.00313.30
8.0.120.0000.00716.68
8.0.110.0070.00016.61
8.0.100.0000.00716.75
8.0.90.0040.00416.84
8.0.80.0090.00916.86
8.0.70.0070.00016.88
8.0.60.0000.00716.90
8.0.50.0000.00716.64
8.0.30.0070.00917.12
8.0.20.0060.01317.40
8.0.10.0040.00416.73
8.0.00.0130.00916.89
7.4.330.0000.00615.55
7.4.320.0000.00616.46
7.4.300.0060.00016.49
7.4.290.0070.00016.50
7.4.280.0000.00816.41
7.4.270.0000.00716.61
7.4.260.0000.00716.44
7.4.250.0000.00716.32
7.4.240.0040.00416.63
7.4.230.0000.00716.36
7.4.220.0120.01416.55
7.4.210.0050.00916.58
7.4.200.0000.00716.50
7.4.160.0060.01116.37
7.4.150.0060.01217.40
7.4.140.0070.01117.86
7.4.130.0100.00716.39
7.4.120.0100.00916.45
7.4.110.0100.00716.50
7.4.100.0100.01016.30
7.4.90.0030.01916.49
7.4.80.0100.01119.39
7.4.70.0050.00216.53
7.4.60.0090.00616.45
7.4.50.0060.01016.52
7.4.40.0090.01316.51
7.4.30.0110.00716.52
7.4.00.0030.01414.54
7.3.330.0060.00013.19
7.3.320.0050.00013.20
7.3.310.0000.00716.23
7.3.300.0070.00016.25
7.3.290.0060.00816.24
7.3.280.0080.00916.21
7.3.270.0160.01017.40
7.3.260.0070.01016.23
7.3.250.0060.01016.29
7.3.240.0100.00816.20
7.3.230.0060.01616.53
7.3.210.0120.00616.16
7.3.200.0100.00616.50
7.3.190.0030.01416.48
7.3.180.0060.00916.19
7.3.170.0030.01316.13
7.3.160.0080.00816.31
7.3.10.0100.00316.54
7.3.00.0070.01116.41
7.2.330.0090.00916.68
7.2.320.0090.00916.38
7.2.310.0090.00616.48
7.2.300.0080.00816.67
7.2.290.0130.01216.45
7.2.130.0070.01116.63
7.2.120.0060.00916.82
7.2.110.0090.00616.72
7.2.100.0090.00616.83
7.2.90.0130.00316.95
7.2.80.0000.01416.89
7.2.70.0100.00716.97
7.2.60.0050.00916.64
7.2.50.0090.00616.74
7.2.40.0030.00816.91
7.2.30.0070.01016.82
7.2.20.0060.01016.98
7.2.10.0040.01416.68
7.2.00.0040.01317.85
7.1.250.0000.00915.55
7.1.200.0070.00415.77
7.1.100.0090.00618.26
7.1.70.0070.01015.37
7.1.60.0810.01034.76
7.1.50.0440.01232.92
7.1.40.0270.01434.39
7.1.30.0190.01334.36
7.1.20.0140.01432.83
7.1.10.0410.01716.67
7.1.00.1000.01016.56
7.0.200.0140.00314.68
7.0.190.0110.00516.57
7.0.180.0030.01716.18
7.0.170.0350.01016.31
7.0.160.0380.00916.31
7.0.150.0070.01116.15
7.0.140.0480.01514.43
7.0.130.0620.00714.82
7.0.120.0610.01014.59
7.0.110.0100.00516.29
7.0.100.0610.00914.55
7.0.90.0450.00916.48
7.0.80.0610.01014.79
7.0.70.0630.01314.52
7.0.60.0080.00516.17
7.0.50.0080.00916.23
7.0.40.0110.00716.52
7.0.30.0090.00816.51
7.0.20.0030.01316.16
7.0.10.0050.01316.53
7.0.00.0030.01316.25

preferences:
44.77 ms | 401 KiB | 5 Q