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 '.__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.0090.00618.71
8.3.30.0110.00718.84
8.3.20.0070.00020.34
8.3.10.0060.00323.70
8.3.00.0030.00619.44
8.2.170.0150.00618.84
8.2.160.0080.00522.96
8.2.150.0090.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00219.45
8.2.120.0000.00826.35
8.2.110.0100.00020.48
8.2.100.0110.00017.72
8.2.90.0040.00419.05
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0070.00017.92
8.2.50.0050.00318.10
8.2.40.0000.00720.53
8.2.30.0030.00519.25
8.2.20.0000.00718.05
8.2.10.0060.00318.13
8.2.00.0000.00718.13
8.1.270.0000.00822.05
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0030.00622.67
8.1.230.0090.00317.77
8.1.220.0000.00817.79
8.1.210.0000.00918.77
8.1.200.0030.00617.35
8.1.190.0090.00017.36
8.1.180.0000.00818.10
8.1.170.0030.00518.50
8.1.160.0070.00018.90
8.1.150.0000.00720.61
8.1.140.0000.00819.56
8.1.130.0000.00818.74
8.1.120.0000.00717.41
8.1.110.0050.00317.29
8.1.100.0040.00417.29
8.1.90.0030.00617.40
8.1.80.0040.00417.40
8.1.70.0070.00017.41
8.1.60.0030.00817.58
8.1.50.0030.00517.46
8.1.40.0070.00317.45
8.1.30.0040.00417.61
8.1.20.0000.00717.55
8.1.10.0000.00717.49
8.1.00.0030.00517.47
8.0.300.0050.00320.02
8.0.290.0040.00416.75
8.0.280.0030.00318.38
8.0.270.0000.00717.10
8.0.260.0030.00316.80
8.0.250.0030.00316.84
8.0.240.0000.00716.94
8.0.230.0030.00316.93
8.0.220.0060.00016.89
8.0.210.0070.00016.89
8.0.200.0030.00316.92
8.0.190.0000.00816.94
8.0.180.0040.00416.91
8.0.170.0000.00716.90
8.0.160.0000.00816.94
8.0.150.0030.00316.86
8.0.140.0000.00716.88
8.0.130.0000.00513.32
8.0.120.0000.00816.86
8.0.110.0040.00416.98
8.0.100.0040.00416.95
8.0.90.0000.00716.81
8.0.80.0000.01616.90
8.0.70.0070.00016.94
8.0.60.0070.00016.88
8.0.50.0050.00216.81
8.0.30.0030.01317.16
8.0.20.0120.01017.40
8.0.10.0070.00017.13
8.0.00.0110.00916.75
7.4.330.0070.00015.55
7.4.320.0030.00316.60
7.4.300.0000.00716.61
7.4.290.0080.00016.50
7.4.280.0000.00716.50
7.4.270.0000.00716.59
7.4.260.0030.00316.51
7.4.250.0030.00616.48
7.4.240.0050.00216.59
7.4.230.0040.00416.61
7.4.220.0130.01316.60
7.4.210.0100.00616.59
7.4.200.0030.00316.55
7.4.160.0050.01116.57
7.4.150.0120.00917.40
7.4.140.0150.00417.86
7.4.130.0060.01816.63
7.4.120.0100.01016.53
7.4.110.0070.01016.46
7.4.100.0040.01716.68
7.4.90.0060.01216.46
7.4.80.0120.01419.39
7.4.70.0170.00016.38
7.4.60.0060.01016.52
7.4.50.0100.00616.48
7.4.40.0120.00916.68
7.4.30.0100.01016.57
7.4.00.0030.01314.76
7.3.330.0030.00313.29
7.3.320.0000.00513.23
7.3.310.0040.00416.22
7.3.300.0030.00316.33
7.3.290.0050.01316.36
7.3.280.0090.00816.34
7.3.270.0180.02617.40
7.3.260.0080.01016.47
7.3.250.0090.01116.31
7.3.240.0120.00516.36
7.3.230.0120.00616.62
7.3.210.0070.01016.57
7.3.200.0070.01016.60
7.3.190.0160.00016.43
7.3.180.0030.01316.45
7.3.170.0060.01016.41
7.3.160.0070.01016.28
7.2.330.0120.00616.44
7.2.320.0070.01016.41
7.2.310.0060.00916.74
7.2.300.0130.00316.81
7.2.290.0130.01216.72
7.2.60.0110.00317.05
7.2.00.0030.00919.30
7.1.200.0100.00815.75
7.1.100.0070.00318.32
7.1.70.0080.01017.09
7.1.60.0290.00635.18
7.1.50.0240.01234.91
7.1.40.0140.02434.42
7.1.30.0160.01934.48
7.1.20.0120.02534.58
7.1.10.0040.01416.71
7.1.00.0130.00516.82
7.0.200.0090.00816.77
7.0.190.0040.01216.79
7.0.180.0060.00916.01
7.0.170.0070.01016.41
7.0.160.0080.01016.27
7.0.150.0060.01216.14
7.0.140.0030.01416.26
7.0.130.0060.01016.41
7.0.120.0050.01116.28
7.0.110.0070.01116.22
7.0.100.0020.01716.20
7.0.90.0100.00816.20
7.0.80.0060.01016.43
7.0.70.0140.00416.34
7.0.60.0060.01116.15
7.0.50.0050.01116.25
7.0.40.0030.01116.54
7.0.30.0060.00816.39
7.0.20.0080.00616.29
7.0.10.0040.01116.42
7.0.00.0000.01416.14

preferences:
38.21 ms | 400 KiB | 5 Q