3v4l.org

run code in 300+ PHP versions simultaneously
<?php $className = "SplFileInfo"; $reflection = new ReflectionClass(); $instance = $reflection->newInstanceWithoutConstructor(); /*$serializedString = sprintf( '%s:%d:"%s":0:{}', 'O', strlen($className), $className ); unserialize($serializedString);

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.0110.00716.63
8.3.50.0090.00722.84
8.3.40.0140.00418.76
8.3.30.0110.00318.93
8.3.20.0070.00020.35
8.3.10.0080.00023.77
8.3.00.0040.00417.50
8.2.180.0150.00016.75
8.2.170.0110.00422.96
8.2.160.0140.00720.27
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0040.00419.23
8.2.110.0070.00220.97
8.2.100.0040.00718.03
8.2.90.0030.00518.98
8.2.80.0040.00417.97
8.2.70.0030.00617.38
8.2.60.0080.00017.91
8.2.50.0060.00318.07
8.2.40.0080.00018.09
8.2.30.0050.00317.80
8.2.20.0040.00417.65
8.2.10.0070.00017.92
8.2.00.0000.00717.60
8.1.280.0060.01525.92
8.1.270.0030.00623.82
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.01222.68
8.1.230.0030.00920.38
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0060.00317.22
8.1.190.0000.00817.00
8.1.180.0050.00318.10
8.1.170.0030.00518.30
8.1.160.0040.00421.95
8.1.150.0000.00718.69
8.1.140.0080.00017.21
8.1.130.0040.00417.66
8.1.120.0030.00317.31
8.1.110.0040.00417.37
8.1.100.0040.00317.18
8.1.90.0080.00417.34
8.1.80.0000.00717.22
8.1.70.0030.00517.23
8.1.60.0050.00317.33
8.1.50.0050.00217.29
8.1.40.0000.00717.39
8.1.30.0030.00517.44
8.1.20.0040.00317.39
8.1.10.0030.00517.38
8.1.00.0040.00417.23
8.0.300.0030.00518.77
8.0.290.0040.00416.75
8.0.280.0000.00718.28
8.0.270.0030.00317.20
8.0.260.0030.00317.19
8.0.250.0030.00316.94
8.0.240.0000.00716.96
8.0.230.0040.00416.90
8.0.220.0050.00216.89
8.0.210.0000.00716.94
8.0.200.0000.00716.91
8.0.190.0030.00316.92
8.0.180.0080.00016.77
8.0.170.0050.00316.93
8.0.160.0000.00716.86
8.0.150.0000.00716.89
8.0.140.0040.00416.87
8.0.130.0050.00213.34
8.0.120.0040.00416.74
8.0.110.0080.00016.84
8.0.100.0030.00616.94
8.0.90.0040.00416.84
8.0.80.0130.00316.81
8.0.70.0000.00716.73
8.0.60.0040.00416.87
8.0.50.0080.00016.71
8.0.30.0110.01216.80
8.0.20.0070.01417.40
8.0.10.0050.00316.93
8.0.00.0060.01316.76
7.4.330.0030.00315.00
7.4.320.0000.00616.58
7.4.300.0000.00816.61
7.4.290.0030.00316.53
7.4.280.0070.00016.39
7.4.270.0030.00316.43
7.4.260.0070.00016.57
7.4.250.0070.00016.41
7.4.240.0030.00316.61
7.4.230.0040.00416.40
7.4.220.0090.00916.58
7.4.210.0070.00716.57
7.4.200.0060.00316.50
7.4.160.0120.00316.51
7.4.150.0130.00317.40
7.4.140.0110.00717.86
7.4.130.0090.00916.45
7.4.120.0140.00616.48
7.4.110.0060.01016.54
7.4.100.0090.00916.52
7.4.90.0140.00316.43
7.4.80.0160.00619.39
7.4.70.0030.01416.48
7.4.60.0120.00316.43
7.4.50.0050.00316.55
7.4.40.0070.01016.47
7.4.30.0060.00916.37
7.4.00.0090.00615.07
7.3.330.0000.00513.16
7.3.320.0000.00713.11
7.3.310.0070.00016.32
7.3.300.0030.00316.11
7.3.290.0060.00916.26
7.3.280.0070.01016.24
7.3.270.0060.00917.40
7.3.260.0120.00916.34
7.3.250.0100.00816.38
7.3.240.0110.00616.61
7.3.230.0070.01016.39
7.3.210.0140.00316.54
7.3.200.0060.01219.39
7.3.190.0090.01216.28
7.3.180.0000.01516.41
7.3.170.0040.01116.40
7.3.160.0130.00316.39
7.2.330.0070.01016.28
7.2.320.0080.00816.66
7.2.310.0070.01316.59
7.2.300.0060.01616.36
7.2.290.0060.01616.54
7.2.60.0090.00616.95
7.2.00.0040.01119.28
7.1.200.0000.00915.45
7.1.100.0190.00417.82
7.1.70.0000.00716.96
7.1.60.0070.01419.40
7.1.50.0090.01216.84
7.1.00.0070.07322.31
7.0.200.0000.01316.69
7.0.140.0000.07722.19
7.0.60.0070.09019.84
7.0.50.0170.06717.91
7.0.40.0070.07320.05
7.0.30.0300.04020.21
7.0.20.0230.07719.99
7.0.10.0070.04020.19
7.0.00.0000.05320.18
5.6.280.0070.07020.82
5.6.210.0100.05020.51
5.6.200.0100.07718.12
5.6.190.0030.09020.36
5.6.180.0330.07320.41
5.6.170.0230.03720.71
5.6.160.0170.06320.62
5.6.150.0130.05718.23
5.6.140.0100.07318.21
5.6.130.0000.07318.07
5.6.120.0100.04720.98
5.6.110.0100.07021.03
5.6.100.0200.05321.13
5.6.90.0100.06020.88
5.6.80.0130.08020.47
5.5.350.0230.07320.49
5.5.340.0030.06718.01
5.5.330.0070.07320.37
5.5.320.0230.04020.28
5.5.310.0300.08320.30
5.5.300.0100.04317.96
5.5.290.0070.08317.91
5.5.280.0130.07720.76
5.5.270.0030.05020.76
5.5.260.0070.06020.87
5.5.250.0100.03320.49
5.5.240.0000.04020.27
5.4.450.0670.06319.14
5.4.440.0700.05319.55
5.4.430.0770.05719.37
5.4.420.0130.06019.33
5.4.410.0170.04718.88
5.4.400.0370.04718.75
5.4.390.0230.06018.73
5.4.380.0100.05018.73
5.4.370.0000.04718.66
5.4.360.0070.03718.58
5.4.350.0070.03311.98
5.4.340.0070.04211.97
5.4.320.0030.03812.46
5.4.310.0040.03912.46
5.4.300.0060.04412.46
5.4.290.0080.04112.45
5.4.280.0070.03612.36
5.4.270.0070.03912.36
5.4.260.0040.04112.36
5.4.250.0070.03912.36
5.4.240.0070.04412.36
5.4.230.0070.05012.35
5.4.220.0070.04212.34
5.4.210.0090.03212.34
5.4.200.0060.03712.35
5.4.190.0040.03712.34
5.4.180.0060.03512.34
5.4.170.0070.04212.35
5.4.160.0080.04512.35
5.4.150.0070.04612.35
5.4.140.0050.03812.03
5.4.130.0060.03412.02
5.4.120.0070.03611.97
5.4.110.0040.03811.98
5.4.100.0070.03411.97
5.4.90.0110.03611.97
5.4.80.0090.03911.97
5.4.70.0040.04211.97
5.4.60.0070.03511.96
5.4.50.0070.03511.97
5.4.40.0080.03911.96
5.4.30.0120.03511.95
5.4.20.0100.03611.95
5.4.10.0070.03811.95
5.4.00.0050.03911.45
5.3.290.0060.03712.80
5.3.280.0090.03812.71
5.3.270.0100.03612.72
5.3.260.0050.04612.71
5.3.250.0060.04212.72
5.3.240.0080.03612.71
5.3.230.0090.04312.71
5.3.220.0070.04112.68
5.3.210.0060.03712.68
5.3.200.0060.03512.68
5.3.190.0060.04512.68
5.3.180.0070.04412.67
5.3.170.0100.03812.67
5.3.160.0090.04212.68
5.3.150.0100.03412.67
5.3.140.0040.04612.66
5.3.130.0110.04712.66
5.3.120.0080.03912.66
5.3.110.0060.04512.66
5.3.100.0090.03412.12
5.3.90.0030.04012.08
5.3.80.0080.04212.07
5.3.70.0090.03712.07
5.3.60.0070.05112.06
5.3.50.0100.03312.00
5.3.40.0070.03512.00
5.3.30.0050.03911.94
5.3.20.0110.03311.72
5.3.10.0110.04111.69
5.3.00.0060.03811.68
5.2.170.0030.0319.18
5.2.160.0030.0309.18
5.2.150.0070.0369.18
5.2.140.0090.0359.17
5.2.130.0070.0299.13
5.2.120.0050.0409.14
5.2.110.0050.0289.14
5.2.100.0070.0259.14
5.2.90.0050.0349.14
5.2.80.0070.0379.14
5.2.70.0050.0329.13
5.2.60.0090.0329.09
5.2.50.0030.0379.06
5.2.40.0060.0309.04
5.2.30.0060.0349.01
5.2.20.0040.0329.00
5.2.10.0100.0308.92
5.2.00.0070.0328.79
5.1.60.0020.0258.07
5.1.50.0050.0238.06
5.1.40.0060.0248.04
5.1.30.0040.0268.39
5.1.20.0020.0318.42
5.1.10.0070.0308.14
5.1.00.0040.0358.14
5.0.50.0080.0216.62
5.0.40.0050.0256.48
5.0.30.0070.0366.29
5.0.20.0030.0226.26
5.0.10.0030.0266.24
5.0.00.0030.0316.23
4.4.90.0060.0214.78
4.4.80.0040.0164.75
4.4.70.0050.0184.76
4.4.60.0020.0164.75
4.4.50.0040.0144.77
4.4.40.0050.0254.71
4.4.30.0040.0214.76
4.4.20.0060.0204.84
4.4.10.0020.0224.85
4.4.00.0030.0314.76
4.3.110.0040.0214.67
4.3.100.0030.0194.67
4.3.90.0040.0134.63
4.3.80.0020.0314.58
4.3.70.0030.0154.63
4.3.60.0010.0174.63
4.3.50.0040.0164.63
4.3.40.0050.0254.54
4.3.30.0030.0143.27
4.3.20.0020.0163.25
4.3.10.0000.0173.22
4.3.00.0030.0207.17

preferences:
40.48 ms | 401 KiB | 5 Q