3v4l.org

run code in 300+ PHP versions simultaneously
<?hh class Duplicator { private function transform($value) { return $value * 2; } public function getTransformed($stuff) { return $stuff->map('transform'); } } $duplicator = new Duplicator(); $stuff = Vector {1,2,3}; var_dump($duplicator->getTransformed($stuff));

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.0090.00618.30
8.3.50.0050.01622.93
8.3.40.0090.00618.79
8.3.30.0140.00019.05
8.3.20.0040.00420.33
8.3.10.0040.00423.65
8.3.00.0060.00319.15
8.2.180.0190.00016.35
8.2.170.0110.01122.96
8.2.160.0070.00720.55
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0060.00319.18
8.2.110.0090.00022.31
8.2.100.0070.00718.09
8.2.90.0050.00319.16
8.2.80.0080.00017.97
8.2.70.0000.00817.38
8.2.60.0030.00617.80
8.2.50.0040.00418.07
8.2.40.0060.00318.22
8.2.30.0040.00417.84
8.2.20.0000.00717.61
8.2.10.0000.00717.84
8.2.00.0000.00717.54
8.1.280.0140.00425.92
8.1.270.0040.00423.86
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0000.00922.20
8.1.230.0070.00418.98
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0070.00317.10
8.1.180.0000.00818.10
8.1.170.0040.00418.58
8.1.160.0000.00721.97
8.1.150.0040.00418.74
8.1.140.0000.00717.26
8.1.130.0000.00717.63
8.1.120.0000.00717.32
8.1.110.0070.00017.31
8.1.100.0030.00717.34
8.1.90.0000.00717.21
8.1.80.0030.00517.31
8.1.70.0030.00317.27
8.1.60.0030.00617.48
8.1.50.0040.00417.42
8.1.40.0030.00617.34
8.1.30.0080.00017.41
8.1.20.0040.00417.49
8.1.10.0070.00017.30
8.1.00.0000.00717.30
8.0.300.0040.00418.77
8.0.290.0070.00016.63
8.0.280.0000.00818.29
8.0.270.0070.00017.18
8.0.260.0030.00317.24
8.0.250.0020.00516.77
8.0.240.0060.00316.69
8.0.230.0070.00016.79
8.0.220.0000.00816.68
8.0.210.0030.00316.71
8.0.200.0070.00016.76
8.0.190.0000.00716.91
8.0.180.0000.00716.67
8.0.170.0080.00016.76
8.0.160.0000.00716.66
8.0.150.0070.00016.74
8.0.140.0000.00716.62
8.0.130.0040.00413.38
8.0.120.0000.00816.63
8.0.110.0050.00316.63
8.0.100.0040.00416.80
8.0.90.0030.00616.57
8.0.80.0100.01016.74
8.0.70.0000.00816.57
8.0.60.0000.00716.68
8.0.50.0050.00316.82
8.0.30.0110.00817.08
8.0.20.0110.00817.40
8.0.10.0000.00816.67
8.0.00.0120.00516.53
7.4.330.0060.00015.08
7.4.320.0030.00316.45
7.4.300.0000.00716.47
7.4.290.0050.00316.35
7.4.280.0070.00016.32
7.4.270.0030.00316.39
7.4.260.0000.00716.44
7.4.250.0000.00816.38
7.4.240.0020.00616.48
7.4.230.0060.00016.21
7.4.220.0060.01216.40
7.4.210.0130.00616.39
7.4.200.0000.00716.32
7.4.160.0070.01016.17
7.4.150.0110.00717.40
7.4.140.0110.00817.86
7.4.130.0120.00516.49
7.4.120.0120.00516.36
7.4.110.0100.00716.49
7.4.100.0200.00316.34
7.4.90.0030.01316.61
7.4.80.0150.00319.39
7.4.70.0090.01516.32
7.4.60.0060.01016.22
7.4.50.0020.00216.53
7.4.40.0090.00816.21
7.4.30.0130.00616.17
7.3.330.0050.00012.92
7.3.320.0020.00213.09
7.3.310.0000.00715.98
7.3.300.0060.00016.16
7.3.290.0030.01016.13
7.3.280.0110.00416.13
7.3.270.0090.01217.40
7.3.260.0140.00316.55
7.3.250.0060.01016.41
7.3.240.0080.00816.39
7.3.230.0100.00716.39
7.3.210.0140.00316.19
7.3.200.0060.00919.39
7.3.190.0060.00916.31
7.3.180.0080.00816.34
7.3.170.0000.01516.28
7.3.160.0030.01316.33
7.2.330.0080.00916.61
7.2.320.0180.00016.50
7.2.310.0120.00416.40
7.2.300.0070.01316.59
7.2.290.0060.01016.38
5.4.320.0060.03712.45
5.4.310.0050.03812.45
5.4.300.0050.03612.45
5.4.290.0030.04012.45
5.4.280.0070.03312.34
5.4.270.0050.03812.34
5.4.260.0070.03712.35
5.4.250.0080.04312.34
5.4.240.0050.04512.34
5.4.230.0050.03812.34
5.4.220.0080.03912.34
5.4.210.0050.03512.34
5.4.200.0060.03712.34
5.4.190.0080.03412.33
5.4.180.0050.03812.33
5.4.170.0070.03712.35
5.4.160.0040.04112.34
5.4.150.0090.03712.34
5.4.140.0080.04412.02
5.4.130.0050.03512.01
5.4.120.0060.03811.97
5.4.110.0060.03811.96
5.4.100.0080.03311.96
5.4.90.0060.03611.96
5.4.80.0060.03611.96
5.4.70.0030.03611.96
5.4.60.0070.03211.96
5.4.50.0050.03911.96
5.4.40.0060.03811.95
5.4.30.0070.04511.95
5.4.20.0070.03311.95
5.4.10.0080.03211.95
5.4.00.0070.03511.44

preferences:
40.93 ms | 401 KiB | 5 Q