3v4l.org

run code in 300+ PHP versions simultaneously
<?php $file1 = new \SplFileInfo('foo/bar.baz'); $file2 = new \SplFileInfo('foo\bar.baz'); echo $file1->getBasename() . "\n"; echo $file2->getBasename();

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.4.120.0110.00422.44
8.4.110.0110.01022.24
8.4.100.0140.00717.72
8.4.90.0080.01218.58
8.4.80.0140.00717.86
8.4.70.0070.00217.56
8.4.60.0100.01118.63
8.4.50.0120.00920.31
8.4.40.0060.01319.28
8.4.30.0040.01120.07
8.4.20.0150.00420.83
8.4.10.0090.00921.72
8.3.250.0130.00519.06
8.3.240.0160.00416.59
8.3.230.0120.00516.56
8.3.220.0110.00717.09
8.3.210.0040.00316.64
8.3.200.0100.00316.42
8.3.190.0110.01017.14
8.3.180.0090.01018.24
8.3.170.0060.01216.93
8.3.160.0090.00616.48
8.3.150.0100.01018.86
8.3.140.0040.00419.05
8.3.130.0030.00618.21
8.3.120.0110.00418.59
8.3.110.0060.00320.94
8.3.100.0000.01116.46
8.3.90.0080.00026.77
8.3.80.0030.00616.63
8.3.70.0140.00316.63
8.3.60.0110.00416.72
8.3.50.0140.01019.97
8.3.40.0070.00718.71
8.3.30.0070.00718.66
8.3.20.0040.00424.18
8.3.10.0000.00824.66
8.3.00.0080.00026.16
8.2.290.0110.00720.14
8.2.280.0050.00318.93
8.2.270.0070.00717.30
8.2.260.0100.00016.75
8.2.250.0060.00316.44
8.2.240.0040.00419.13
8.2.230.0080.00022.58
8.2.220.0080.00024.06
8.2.210.0070.01426.77
8.2.200.0030.00618.41
8.2.190.0080.00616.58
8.2.180.0040.01125.92
8.2.170.0120.00318.78
8.2.160.0070.00722.96
8.2.150.0000.00725.66
8.2.140.0070.00024.66
8.2.130.0000.00826.16
8.2.120.0040.00426.16
8.2.110.0100.00022.08
8.2.100.0090.00319.45
8.2.90.0050.00317.50
8.2.80.0040.00418.79
8.2.70.0090.00317.75
8.2.60.0000.00817.63
8.2.50.0040.00418.04
8.2.40.0040.00417.90
8.2.30.0070.00017.95
8.2.20.0080.00020.49
8.2.10.0040.00417.88
8.2.00.0000.00719.15
8.1.330.0110.00823.39
8.1.320.0090.01016.21
8.1.310.0050.00316.97
8.1.300.0190.00018.41
8.1.290.0090.00030.84
8.1.280.0110.00425.92
8.1.270.0050.00223.99
8.1.260.0000.00726.35
8.1.250.0000.00828.09
8.1.240.0030.00620.16
8.1.230.0080.00417.63
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0040.00417.35
8.1.190.0050.00317.13
8.1.180.0040.00418.10
8.1.170.0040.00417.62
8.1.160.0030.00518.89
8.1.150.0070.00018.68
8.1.140.0040.00417.40
8.1.130.0030.00318.86
8.1.120.0050.00317.54
8.1.110.0000.00717.48
8.1.100.0040.00417.46
8.1.90.0030.00517.35
8.1.80.0040.00417.52
8.1.70.0030.00617.35
8.1.60.0120.00417.50
8.1.50.0090.00517.46
8.1.40.0130.00617.46
8.1.30.0110.00617.65
8.1.20.0090.00717.63
8.1.10.0130.00617.52
8.1.00.0070.00817.43
8.0.300.0040.00418.77
8.0.290.0040.00416.58
8.0.280.0030.00318.32
8.0.270.0030.00316.89
8.0.260.0030.00318.42
8.0.250.0020.00517.02
8.0.240.0040.00417.01
8.0.230.0070.00016.96
8.0.220.0070.00016.81
8.0.210.0000.00716.80
8.0.200.0070.00316.96
8.0.190.0090.00716.88
8.0.180.0100.00616.77
8.0.170.0110.00416.92
8.0.160.0060.00716.84
8.0.150.0110.00416.85
8.0.140.0120.00316.80
8.0.130.0130.00216.79
8.0.120.0080.00716.86
8.0.110.0120.00216.81
8.0.100.0120.00316.83
8.0.90.0110.00416.79
8.0.80.0100.00516.81
8.0.70.0090.00616.78
8.0.60.0080.00716.73
8.0.50.0130.00216.65
8.0.30.0090.00716.81
8.0.20.0100.00516.85
8.0.10.0110.00616.94
7.4.330.0050.00015.55
7.4.320.0000.00716.54
7.4.300.0040.00516.47
7.4.290.0100.00216.46
7.4.280.0050.00516.48
7.4.270.0070.00616.49
7.4.260.0140.00416.43
7.4.250.0140.00416.45
7.4.240.0150.00316.47
7.4.230.0110.00416.44
7.4.220.0100.00416.41
7.4.210.0110.00416.46
7.4.200.0120.00316.49
7.4.190.0080.00716.54
7.4.180.0090.00616.48
7.4.160.0130.00216.51
7.4.150.0080.00616.34
7.4.140.0130.00116.38
7.4.130.0110.00316.40
7.4.120.0110.00516.38
7.4.110.0110.00416.43
7.4.100.0050.00416.41
7.4.90.0110.00416.36
7.4.80.0110.00416.43
7.4.70.0120.00316.32
7.4.60.0110.00416.35
7.4.50.0100.00416.29
7.4.40.0080.00716.30
7.4.30.0120.00416.33
7.4.20.0110.00316.35
7.4.10.0100.00416.30
7.4.00.0110.00416.36

preferences:
23.87 ms | 403 KiB | 5 Q