3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function doFoo($file, $args) { extract($args); return $file; } } $f = new Foo; var_dump($f->doFoo('test', array('file' => $f)));

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.90.0080.00026.77
8.3.80.0060.00316.50
8.3.70.0070.01518.56
8.3.60.0100.00716.75
8.3.50.0060.01222.11
8.3.40.0090.00618.68
8.3.30.0110.00318.36
8.3.20.0040.00420.20
8.3.10.0070.00023.51
8.3.00.0150.00419.11
8.2.210.0000.00826.77
8.2.200.0090.00016.38
8.2.190.0120.00316.58
8.2.180.0140.00716.38
8.2.170.0120.00322.96
8.2.160.0170.00320.58
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0060.00317.25
8.2.120.0030.00626.35
8.2.110.0090.01220.83
8.2.100.0090.00317.93
8.2.90.0030.00619.24
8.2.80.0040.00417.97
8.2.70.0000.00817.13
8.2.60.0000.00817.80
8.2.50.0030.00618.07
8.2.40.0070.00019.19
8.2.30.0040.00420.73
8.2.20.0090.00017.68
8.2.10.0040.00418.11
8.2.00.0000.00717.92
8.1.290.0000.00918.88
8.1.280.0060.00925.92
8.1.270.0090.00023.83
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0030.00622.54
8.1.230.0090.00317.66
8.1.220.0000.00917.74
8.1.210.0000.00818.77
8.1.200.0030.00617.22
8.1.190.0060.00317.10
8.1.180.0040.00418.10
8.1.170.0040.00418.78
8.1.160.0000.00721.93
8.1.150.0040.00418.78
8.1.140.0080.00019.44
8.1.130.0070.00017.60
8.1.120.0060.00317.37
8.1.110.0040.00417.34
8.1.100.0000.00817.30
8.1.90.0000.00717.45
8.1.80.0000.00817.37
8.1.70.0030.00317.30
8.1.60.0000.00717.46
8.1.50.0060.00317.53
8.1.40.0040.00417.52
8.1.30.0000.00817.65
8.1.20.0040.00417.58
8.1.10.0000.00817.47
8.1.00.0030.00717.55
8.0.300.0040.00418.77
8.0.290.0050.00216.63
8.0.280.0000.00818.28
8.0.270.0000.00717.17
8.0.260.0040.00417.25
8.0.250.0000.00716.79
8.0.240.0000.00716.71
8.0.230.0060.00316.77
8.0.220.0000.00716.85
8.0.210.0000.00716.86
8.0.200.0040.00416.87
8.0.190.0070.00016.95
8.0.180.0040.00416.89
8.0.170.0000.00816.81
8.0.160.0030.00516.91
8.0.150.0050.00316.73
8.0.140.0030.00516.77
8.0.130.0060.00013.18
8.0.120.0060.00316.80
8.0.110.0020.00516.79
8.0.100.0000.00716.84
8.0.90.0040.00416.69
8.0.80.0130.00316.75
8.0.70.0040.00416.80
8.0.60.0040.00416.93
8.0.50.0040.00416.64
8.0.30.0090.01117.00
8.0.20.0120.00717.40
8.0.10.0000.00716.72
8.0.00.0110.00516.77
7.4.330.0050.00016.82
7.4.320.0070.00016.57
7.4.300.0000.00716.35
7.4.290.0000.00716.52
7.4.280.0040.00416.59
7.4.270.0000.00716.51
7.4.260.0050.00316.60
7.4.250.0070.00016.47
7.4.240.0040.00316.47
7.4.230.0000.00716.70
7.4.220.0100.01316.40
7.4.210.0110.00316.53
7.4.200.0040.00416.49
7.4.160.0130.00316.38
7.4.150.0030.01317.40
7.4.140.0070.01217.86
7.4.130.0120.00616.41
7.4.120.0150.00316.51
7.4.110.0130.00916.44
7.4.100.0090.00916.36
7.4.90.0110.00616.41
7.4.80.0070.01019.39
7.4.70.0170.00016.52
7.4.60.0130.00716.36
7.4.50.0080.00816.36
7.4.40.0090.00616.50
7.4.30.0120.00616.55
7.4.00.0030.01415.00
7.3.330.0030.00313.15
7.3.320.0000.00513.13
7.3.310.0050.00216.39
7.3.300.0030.00416.24
7.3.290.0070.00916.33
7.3.280.0050.01016.21
7.3.270.0060.01017.40
7.3.260.0080.00816.44
7.3.240.0100.01016.42
7.3.230.0070.01016.39
7.3.210.0110.00616.23
7.3.200.0130.00716.60
7.3.190.0120.00916.20
7.3.180.0060.01016.56
7.3.170.0090.01216.56
7.3.160.0090.00816.37
7.3.120.0090.00914.94
7.3.110.0090.00914.49
7.3.100.0000.01414.67
7.3.90.0130.00314.69
7.3.80.0070.00314.56
7.3.70.0000.01514.78
7.3.60.0040.00414.54
7.3.50.0030.00614.76
7.3.40.0130.00014.87
7.3.30.0030.01514.68
7.3.20.0130.00316.61
7.3.10.0040.01116.70
7.3.00.0070.00716.46
7.2.330.0090.00816.71
7.2.320.0070.01316.63
7.2.310.0160.00016.55
7.2.300.0110.00716.56
7.2.290.0130.01016.26
7.2.250.0030.01014.87
7.2.240.0030.01615.05
7.2.230.0030.01515.04
7.2.220.0080.00414.79
7.2.210.0030.01014.90
7.2.200.0040.01114.94
7.2.190.0030.01315.07
7.2.180.0090.00614.98
7.2.170.0120.00414.99
7.2.60.0090.00616.30
7.2.50.0100.00616.72
7.1.330.0100.00315.77
7.1.320.0070.00715.80
7.1.310.0040.00715.84
7.1.300.0080.00815.91
7.1.290.0100.00315.43
7.1.280.0030.01215.73
7.1.270.0040.01415.60
7.1.260.0030.01015.75
7.1.200.0040.00815.71
7.1.70.0070.00017.16
7.1.60.0100.01319.48
7.1.50.0140.01116.96
7.1.00.0070.07322.27
7.0.200.0430.00314.61
7.0.60.0130.07319.91
7.0.50.0000.05317.73
7.0.40.0070.07720.24
7.0.30.0370.06720.12
7.0.20.0200.08320.09
7.0.10.0000.05020.12
7.0.00.0070.08320.10
5.6.280.0000.07321.00
5.6.210.0070.04320.72
5.6.200.0070.08018.17
5.6.190.0100.08720.41
5.6.180.0270.06720.55
5.6.170.0300.07720.41
5.6.160.0030.04320.45
5.6.150.0100.07018.18
5.6.140.0070.08018.27
5.6.130.0070.05318.21
5.6.120.0070.08321.02
5.6.110.0230.06721.00
5.6.100.0070.07021.09
5.6.90.0100.08020.98
5.6.80.0170.05720.40
5.5.350.1630.04020.33
5.5.340.0070.08017.95
5.5.330.0070.06720.37
5.5.320.0000.04020.36
5.5.310.0230.07720.27
5.5.300.0100.07317.92
5.5.290.0100.07018.09
5.5.280.0130.05320.77
5.5.270.0130.08020.80
5.5.260.0100.07020.84
5.5.250.0030.04320.59
5.5.240.0230.05720.25

preferences:
29.81 ms | 401 KiB | 5 Q