3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test($obj) { $obj->fputcsv([]); } $objects = [ new SplFileObject(tempnam(sys_get_temp_dir(), 'tmp')), (new ReflectionClass( "SplFileObject" ))->newInstanceWithoutConstructor(), ]; foreach ($objects as $obj) { test($obj); }

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.5.00.0120.00919.80
8.4.150.0010.00114.05
8.4.140.0120.00717.40
8.4.130.0070.00118.64
8.4.120.0100.00520.36
8.4.110.0060.00418.77
8.4.100.0150.00518.11
8.4.90.0130.00520.45
8.4.80.0140.00418.98
8.4.70.0120.00718.97
8.4.60.0080.01120.80
8.4.50.0120.00618.87
8.4.40.0150.00417.78
8.4.30.0120.00623.92
8.4.20.0160.00319.64
8.4.10.0080.00019.40
8.3.280.0100.01018.41
8.3.270.0090.00816.65
8.3.260.0090.00616.66
8.3.250.0130.00517.29
8.3.240.0130.00516.83
8.3.230.0090.01016.51
8.3.220.0100.00719.00
8.3.210.0040.00316.86
8.3.200.0180.00316.61
8.3.190.0090.00817.09
8.3.180.0140.00418.91
8.3.170.0090.00917.00
8.3.160.0130.00618.38
8.3.150.0100.00717.08
8.3.140.0060.00318.51
8.3.130.0040.00416.58
8.3.120.0320.01116.46
8.3.110.0370.00716.67
8.3.100.0330.00016.59
8.3.90.0160.00616.52
8.3.80.0120.00816.33
8.3.70.0100.00716.71
8.3.60.0100.00716.57
8.3.50.0140.00316.44
8.3.40.0140.00417.16
8.3.30.0190.00017.56
8.3.20.0140.00516.99
8.3.10.0100.00317.20
8.3.00.0130.00317.50
8.2.290.0080.01017.43
8.2.280.0100.00720.21
8.2.270.0110.00716.64
8.2.260.0030.01017.11
8.2.250.0070.00016.78
8.2.240.0150.00016.44
8.2.230.0120.00216.23
8.2.220.0170.00416.21
8.2.210.0170.00016.24
8.2.200.0150.00315.95
8.2.190.0060.00916.46
8.2.180.0130.00316.26
8.2.170.0210.00017.61
8.2.160.0090.00917.64
8.2.150.0170.00017.46
8.2.140.0110.00617.54
8.2.130.0130.00417.14
8.2.120.0200.00017.40
8.2.110.0150.00416.93
8.2.100.0110.00617.27
8.2.90.0130.00317.53
8.2.80.0120.00417.38
8.2.70.0120.00417.57
8.2.60.0120.00416.81
8.2.50.0170.00017.31
8.2.40.0170.00017.44
8.2.30.0120.00417.24
8.2.20.0160.00017.30
8.2.10.0050.01017.07
8.2.00.0050.01017.43
8.1.330.0110.00716.00
8.1.320.0040.00317.98
8.1.310.0080.00018.48
8.1.300.0140.00316.15
8.1.290.0140.00316.18
8.1.280.0120.00616.14
8.1.270.0120.00516.89
8.1.260.0150.00316.68
8.1.250.0200.00017.24
8.1.240.0150.00016.61
8.1.230.0090.00916.58
8.1.220.0100.00717.11
8.1.210.0120.00317.01
8.1.200.0150.00016.83
8.1.190.0140.00016.93
8.1.180.0110.00517.13
8.1.170.0140.00317.21
8.1.160.0120.00616.59
8.1.150.0070.00717.13
8.1.140.0160.00016.98
8.1.130.0080.00816.61
8.1.120.0110.00616.78
8.1.110.0050.01116.67
8.1.100.0120.00616.80
8.1.90.0150.00017.18
8.1.80.0050.01017.10
8.1.70.0100.00717.23
8.1.60.0110.01116.78
8.1.50.0150.00416.67
8.1.40.0120.00616.87
8.1.30.0150.00317.11
8.1.20.0180.00016.91
8.1.10.0150.00316.90
8.1.00.0170.00016.63

preferences:
56.5 ms | 403 KiB | 5 Q