3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface CacheInterface { public function get(string $key): ?string; public function set(string $key, array $value); } class ApcCache implements CacheInterface { private $client; public function __construct($client) { $this->client = $client; } public function get(string $key):?string { $ret = apc_fetch($key); if (empty($ret)) { return null; } return $ret; } }

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.0120.00618.55
8.3.60.0070.01416.75
8.3.50.0120.00317.54
8.3.40.0110.00718.84
8.3.30.0090.00918.58
8.3.20.0040.00420.38
8.3.10.0050.00323.65
8.3.00.0000.00722.13
8.2.180.0120.00616.50
8.2.170.0110.00422.96
8.2.160.0100.00719.13
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0000.00821.12
8.2.120.0030.00526.35
8.2.110.0090.00021.12
8.2.100.0090.00617.74
8.2.90.0080.00019.23
8.2.80.0000.00817.97
8.2.70.0030.00517.63
8.2.60.0040.00417.93
8.2.50.0040.00418.10
8.2.40.0000.00720.50
8.2.30.0000.00821.00
8.2.20.0000.00717.89
8.2.10.0000.00817.99
8.2.00.0040.00418.01
8.1.280.0210.00725.92
8.1.270.0000.00722.01
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00623.84
8.1.230.0080.00319.09
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0070.00317.35
8.1.190.0030.00617.10
8.1.180.0050.00218.10
8.1.170.0050.00318.47
8.1.160.0040.00419.01
8.1.150.0000.00818.89
8.1.140.0040.00419.49
8.1.130.0030.00318.75
8.1.120.0070.00017.38
8.1.110.0040.00417.34
8.1.100.0040.00417.25
8.1.90.0060.00317.38
8.1.80.0070.00017.34
8.1.70.0000.00717.30
8.1.60.0030.00517.53
8.1.50.0050.00517.42
8.1.40.0050.00317.37
8.1.30.0030.00617.54
8.1.20.0090.00317.59
8.1.10.0040.00417.35
8.1.00.0070.00017.21
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0000.00818.41
8.0.270.0000.00817.20
8.0.260.0030.00316.87
8.0.250.0000.00716.82
8.0.240.0070.00316.90
8.0.230.0040.00416.92
8.0.220.0000.00716.85
8.0.210.0000.00816.80
8.0.200.0030.00316.83
8.0.190.0060.00316.92
8.0.180.0000.00816.84
8.0.170.0070.00016.84
8.0.160.0040.00416.84
8.0.150.0030.00316.93
8.0.140.0070.00016.83
8.0.130.0000.00513.33
8.0.120.0030.00316.91
8.0.110.0000.00716.84
8.0.100.0070.00016.77
8.0.90.0050.00316.79
8.0.80.0070.01116.84
8.0.70.0080.00016.82
8.0.60.0000.00716.78
8.0.50.0000.00716.79
8.0.30.0100.00916.90
8.0.20.0130.00517.40
8.0.10.0040.00416.99
8.0.00.0120.00616.64
7.4.330.0000.00615.55
7.4.320.0000.00616.55
7.4.300.0070.00016.45
7.4.290.0080.00316.53
7.4.280.0040.00416.35
7.4.270.0040.00416.46
7.4.260.0030.00316.43
7.4.250.0050.00316.38
7.4.240.0080.00016.46
7.4.230.0070.00016.55
7.4.220.0130.00316.55
7.4.210.0070.00716.61
7.4.200.0000.00716.44
7.4.160.0120.00416.34
7.4.150.0100.00717.40
7.4.140.0070.01317.86
7.4.130.0060.01116.50
7.4.120.0080.01016.45
7.4.110.0090.00616.38
7.4.100.0090.01016.39
7.4.90.0100.00716.55
7.4.80.0000.01719.39
7.4.70.0130.00316.27
7.4.60.0060.01216.42
7.4.50.0030.01316.56
7.4.40.0150.00616.30
7.4.30.0090.01216.57
7.4.00.0090.00614.82
7.3.330.0030.00313.17
7.3.320.0000.00613.22
7.3.310.0000.00716.28
7.3.300.0000.00616.23
7.3.290.0080.00716.28
7.3.280.0100.00816.23
7.3.270.0040.01817.40
7.3.260.0140.00816.26
7.3.250.0110.00616.33
7.3.240.0080.00916.37
7.3.230.0050.01416.29
7.3.210.0130.00416.16
7.3.200.0060.01016.21
7.3.190.0040.01216.42
7.3.180.0140.00716.50
7.3.170.0050.01116.35
7.3.160.0090.01216.23
7.2.330.0090.01316.39
7.2.320.0180.00016.43
7.2.310.0090.01316.51
7.2.300.0100.01416.58
7.2.290.0100.00616.62
7.2.90.0070.00716.10
7.2.80.0030.01316.46
7.2.70.0050.01016.89
7.2.60.0060.01116.96
7.2.50.0070.01016.82
7.2.40.0040.00916.87
7.2.30.2920.00616.82
7.2.20.0130.00316.56
7.2.10.0060.00616.49
7.2.00.0050.01016.74
7.1.210.0000.01615.66
7.1.200.0100.00615.46
7.1.190.0040.01315.74
7.1.180.0060.00915.61
7.1.170.0090.00615.40
7.1.160.0100.01015.45
7.1.150.0120.00315.65
7.1.140.2960.01215.63
7.1.130.0080.00815.61
7.1.120.0060.00615.55
7.1.110.0100.00315.58
7.1.100.0120.00315.38
7.1.90.0080.00815.51
7.1.80.0130.00315.70
7.1.70.0070.00715.39
7.1.60.0240.01233.73
7.1.50.0330.01033.68
7.1.40.0220.01333.86
7.1.30.0220.01033.51
7.1.20.0270.01033.80
7.1.10.0040.01115.54
7.1.00.2960.00713.69
7.0.310.0110.00314.93
7.0.300.0060.00915.30
7.0.290.0030.01215.20
7.0.280.0120.00315.16
7.0.270.0030.00915.21
7.0.260.0080.00415.29
7.0.250.0080.00415.41
7.0.240.0050.00615.16
7.0.230.0030.00915.32
7.0.220.0100.00315.03
7.0.210.0030.00915.23
7.0.200.0120.00315.23
7.0.190.0030.01315.19
7.0.180.0030.00915.33
7.0.170.0050.00515.32
7.0.160.0070.00415.40
7.0.150.0040.01115.19
7.0.140.2520.00015.23
7.0.130.0070.00415.28
7.0.120.0120.00015.04
7.0.110.0090.00315.16
7.0.100.0040.00815.14
7.0.90.0000.01115.11
7.0.80.0100.00315.29
7.0.70.0100.00315.35
7.0.60.0060.00415.39
7.0.50.0040.00715.31
7.0.40.0110.00415.13
7.0.30.0090.00615.40
7.0.20.0070.00715.16
7.0.10.0070.00715.28
7.0.00.0060.00615.35

preferences:
50.87 ms | 401 KiB | 5 Q