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($method)) { throw new \BadMethodCallException('Call to undefined method '.__CLASS__."::$method()"); } return self::serialize(...$args); } } JsonSerializer::serialize('foo'); (new 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.70.0090.01318.18
8.3.60.0110.01116.25
8.3.50.0100.00816.46
8.3.40.0090.00918.76
8.3.30.0150.00318.58
8.3.20.0040.00420.35
8.3.10.0050.00521.77
8.3.00.0040.00419.56
8.2.180.0070.00718.30
8.2.170.0130.00322.96
8.2.160.0150.00418.74
8.2.150.0030.00624.18
8.2.140.0000.00824.66
8.2.130.0040.00419.21
8.2.120.0030.00626.35
8.2.110.0030.00520.29
8.2.100.0060.00618.02
8.2.90.0000.00719.36
8.2.80.0040.00417.97
8.2.70.0050.00317.80
8.2.60.0000.00818.09
8.2.50.0030.00618.10
8.2.40.0050.00220.47
8.2.30.0040.00419.04
8.2.20.0000.00717.81
8.2.10.0040.00417.85
8.2.00.0070.00017.80
8.1.280.0090.00625.92
8.1.270.0080.00022.19
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0070.01023.82
8.1.230.0040.00822.11
8.1.220.0000.00817.74
8.1.210.0090.00018.77
8.1.200.0090.00017.10
8.1.190.0000.00817.10
8.1.180.0080.00018.10
8.1.170.0040.00418.88
8.1.160.0000.00818.82
8.1.150.0050.00320.55
8.1.140.0040.00719.32
8.1.130.0030.00318.75
8.1.120.0050.00317.39
8.1.110.0040.00417.34
8.1.100.0040.00417.22
8.1.90.0000.00817.38
8.1.80.0000.00717.33
8.1.70.0000.00717.31
8.1.60.0060.00317.41
8.1.50.0000.00717.50
8.1.40.0030.00617.30
8.1.30.0050.00317.66
8.1.20.0060.00317.56
8.1.10.0040.00417.36
8.1.00.0000.00717.35
8.0.300.0050.00321.40
8.0.290.0000.00916.63
8.0.280.0000.00818.25
8.0.270.0030.00317.20
8.0.260.0060.00016.69
8.0.250.0000.00716.92
8.0.240.0000.00716.99
8.0.230.0040.00416.91
8.0.220.0000.00716.82
8.0.210.0030.00316.73
8.0.200.0060.00016.89
8.0.190.0090.00016.79
8.0.180.0000.00716.85
8.0.170.0040.00416.78
8.0.160.0080.00016.85
8.0.150.0000.00716.59
8.0.140.0050.00216.74
8.0.130.0000.00513.25
8.0.120.0040.00416.72
8.0.110.0040.00416.56
8.0.100.0040.00416.66
8.0.90.0000.00816.77
8.0.80.0080.00816.69
8.0.70.0000.00716.62
8.0.60.0040.00416.72
8.0.50.0000.00716.71
8.0.30.0100.00717.07
8.0.20.0110.00817.40
8.0.10.0000.00716.77
8.0.00.0130.01016.78
7.4.330.0060.00015.55
7.4.320.0030.00316.30
7.4.300.0070.00016.41
7.4.290.0030.00316.46
7.4.280.0070.00016.42
7.4.270.0000.00716.52
7.4.260.0040.00416.43
7.4.250.0070.00016.33
7.4.240.0040.00416.39
7.4.230.0040.00416.28
7.4.220.0110.00716.39
7.4.210.0030.01116.37
7.4.200.0030.00316.28
7.4.160.0070.01016.39
7.4.150.0110.00817.40
7.4.140.0090.00917.86
7.4.130.0080.01016.45
7.4.120.0100.00916.43
7.4.110.0100.01416.52
7.4.100.0140.00616.29
7.4.90.0100.00716.22
7.4.80.0130.01019.39
7.4.70.0140.00316.60
7.4.60.0100.00616.41
7.4.50.0070.01016.45
7.4.40.0120.00616.66
7.4.30.0090.00616.59
7.4.00.0110.00715.16
7.3.330.0030.00313.02
7.3.320.0030.00313.22
7.3.310.0050.00316.24
7.3.300.0030.00316.20
7.3.290.0060.00816.23
7.3.280.0070.00916.20
7.3.270.0040.01317.40
7.3.260.0090.00816.26
7.3.250.0090.01116.33
7.3.240.0110.00916.29
7.3.230.0090.00916.25
7.3.210.0040.01216.27
7.3.200.0090.00616.17
7.3.190.0000.01616.45
7.3.180.0090.01416.12
7.3.170.0120.00316.33
7.3.160.0070.01016.22
7.2.330.0110.00616.60
7.2.320.0070.01516.51
7.2.310.0070.01016.46
7.2.300.0030.01516.52
7.2.290.0170.00716.59
7.2.60.0110.00716.73
7.1.200.0090.00615.90
7.1.70.0100.00817.28
7.1.60.0190.01635.03
7.1.50.0170.01834.73
7.1.40.0180.01634.54
7.1.30.0240.01034.48
7.1.20.0190.01534.72
7.1.10.0030.01516.67
7.1.00.0110.00516.72
7.0.200.0030.01316.49
7.0.190.0120.01816.42
7.0.180.0060.00916.37
7.0.170.0060.01016.36
7.0.160.0000.01716.00
7.0.150.0080.00816.15
7.0.140.0070.00716.37
7.0.130.0030.01016.47
7.0.120.0030.01016.50
7.0.110.0070.01016.10
7.0.100.0030.01616.32
7.0.90.0090.01816.45
7.0.80.0000.01916.30
7.0.70.0120.00616.25
7.0.60.0110.00815.93
7.0.50.0100.00716.24
7.0.40.0080.01116.60
7.0.30.0080.01216.36
7.0.20.0070.01016.45
7.0.10.0090.01516.41
7.0.00.0060.00916.54

preferences:
51.47 ms | 401 KiB | 5 Q