3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { function __construct() { echo 'hi'; } } //$obj = new ReflectionFunction('phpinfo'); //var_dump(serialize($obj)); $str = 'O:18:"ReflectionFunction":1:{s:4:"info";a:14:{s:4:"name";s:7:"phpinfo";s:7:"closure";s:0:"";s:8:"internal";b:1;s:11:"return_type";b:0;s:3:"doc";b:0;s:6:"params";a:1:{i:0;a:9:{s:5:"index";i:0;s:4:"name";s:4:"what";s:4:"type";s:0:"";s:9:"type_hint";s:0:"";s:8:"function";s:7:"phpinfo";s:8:"nullable";b:1;s:7:"default";i:0;s:11:"defaultText";s:1:"0";s:10:"attributes";a:0:{}}}s:16:"static_variables";a:0:{}s:10:"attributes";a:0:{}s:8:"is_async";b:0;s:10:"is_closure";b:0;s:12:"is_generator";b:0;s:4:"file";s:2:"//";s:5:"line1";i:0;s:5:"line2";i:0;}}'; unserialize($str);

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.0100.01018.43
8.3.50.0190.00421.05
8.3.40.0040.01118.89
8.3.30.0040.01119.07
8.3.20.0050.00220.21
8.3.10.0080.00023.66
8.3.00.0040.00419.25
8.2.180.0140.00316.63
8.2.170.0100.01022.96
8.2.160.0160.00320.56
8.2.150.0050.00324.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00422.08
8.2.110.0060.00322.07
8.2.100.0080.00417.50
8.2.90.0000.00719.23
8.2.80.0000.00817.97
8.2.70.0030.00617.63
8.2.60.0060.00317.80
8.2.50.0090.00018.07
8.2.40.0000.00819.83
8.2.30.0070.00017.88
8.2.20.0040.00417.58
8.2.10.0000.00718.12
8.2.00.0070.00017.63
8.1.280.0120.00325.92
8.1.270.0080.00022.14
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00623.83
8.1.230.0060.00619.14
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0040.00417.23
8.1.190.0030.00617.23
8.1.180.0000.00818.10
8.1.170.0060.00318.59
8.1.160.0030.00321.95
8.1.150.0030.00518.87
8.1.140.0040.00417.27
8.1.130.0040.00417.82
8.1.120.0000.00717.37
8.1.110.0040.00417.46
8.1.100.0000.00717.35
8.1.90.0000.00717.41
8.1.80.0050.00217.38
8.1.70.0030.00517.28
8.1.60.0040.00417.43
8.1.50.0050.00317.53
8.1.40.0000.00717.55
8.1.30.0000.00817.56
8.1.20.0000.00817.64
8.1.10.0070.00017.56
8.1.00.0030.00617.51
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0030.00318.45
8.0.270.0030.00317.24
8.0.260.0070.00017.26
8.0.250.0070.00016.89
8.0.240.0030.00316.89
8.0.230.0000.00916.95
8.0.220.0000.00616.88
8.0.210.0000.00716.90
8.0.200.0000.00617.01
8.0.190.0080.00016.88
8.0.180.0040.00416.92
8.0.170.0030.00516.80
8.0.160.0050.00316.89
8.0.150.0050.00216.81
8.0.140.0030.00316.75
8.0.130.0050.00013.36
8.0.120.0070.00016.77
8.0.110.0050.00316.90
8.0.100.0050.00216.85
8.0.90.0070.00016.87
8.0.80.0150.00616.88
8.0.70.0070.00016.75
8.0.60.0040.00316.89
8.0.50.0040.00416.69
8.0.30.0080.01216.90
8.0.20.0110.00817.40
8.0.10.0040.00416.98
8.0.00.0100.00716.76
7.4.330.0000.00515.02
7.4.320.0000.00616.30
7.4.300.0030.00616.59
7.4.290.0030.00316.44
7.4.280.0000.00816.45
7.4.270.0000.00716.52
7.4.260.0030.00316.52
7.4.250.0000.00716.49
7.4.240.0020.00516.58
7.4.230.0030.00316.42
7.4.220.0150.00616.41
7.4.210.0130.00716.46
7.4.200.0030.00316.57
7.4.160.0090.00916.37
7.4.150.0150.00417.40
7.4.140.0080.01417.86
7.4.130.0060.01216.50
7.4.120.0080.01416.43
7.4.110.0150.00316.44
7.4.100.0090.01216.40
7.4.90.0070.01016.38
7.4.80.0030.01419.39
7.4.70.0120.00916.36
7.4.60.0110.00716.52
7.4.50.0080.00016.68
7.4.40.0030.01316.41
7.4.30.0160.00016.53
7.4.00.0060.00914.79
7.3.330.0000.00613.03
7.3.320.0000.00513.11
7.3.310.0070.00016.29
7.3.300.0030.00316.05
7.3.290.0120.00416.22
7.3.280.0080.00816.21
7.3.270.0110.00617.40
7.3.260.0060.01116.40
7.3.250.0100.00716.23
7.3.240.0000.01716.12
7.3.230.0060.01116.39
7.3.210.0170.00716.36
7.3.200.0030.01319.39
7.3.190.0060.01516.35
7.3.180.0120.00916.12
7.3.170.0150.00316.34
7.3.160.0130.00616.32
7.2.330.0100.00716.38
7.2.320.0090.00916.13
7.2.310.0070.01416.53
7.2.300.0100.01016.07
7.2.290.0120.00916.31
7.2.60.0070.00716.76
7.2.50.0100.00716.77
7.1.200.0140.00015.64
7.1.70.0000.01316.78
7.1.60.0040.01819.11
7.1.50.0030.02016.49
7.1.00.0100.07022.33
7.0.200.0040.00716.82
7.0.140.0000.07721.95
7.0.60.0100.07720.05
7.0.50.0130.04717.89
7.0.40.0100.08020.02
7.0.30.0130.05720.09
7.0.20.0170.04720.06
7.0.10.0130.07720.10
7.0.00.0070.04320.06
5.6.280.0070.06321.09
5.6.210.0170.07720.53
5.6.200.0130.07718.16
5.6.190.0070.08320.55
5.6.180.0200.04320.57
5.6.170.0270.07020.48
5.6.160.0100.07720.47
5.6.150.0100.08318.18
5.6.140.0130.07718.24
5.6.130.0070.08718.15
5.6.120.0070.05321.00
5.6.110.0030.08320.96
5.6.100.0100.08321.11
5.6.90.0030.09021.12
5.6.80.0100.05720.46
5.6.70.4630.04020.35
5.5.350.0170.06720.45
5.5.340.0030.04018.03
5.5.330.0070.08320.13
5.5.320.0200.04020.35
5.5.310.0300.07320.37
5.5.300.0030.08318.04
5.5.290.0100.03318.08
5.5.280.0070.08320.87
5.5.270.0030.08720.64
5.5.260.0030.08320.85
5.5.250.0100.08020.66
5.5.240.0330.06020.28
5.4.450.0900.07719.63
5.4.440.0700.07319.63
5.4.430.0070.06019.60
5.4.420.0700.06019.55
5.4.410.0870.05019.35
5.4.400.0870.05019.00
5.4.390.0130.05319.22
5.4.380.0930.05318.98
5.4.370.0570.07019.14
5.4.360.0770.06019.14
5.4.350.0130.05319.08
5.4.340.0060.03412.01
5.4.320.0100.03112.50
5.4.310.0030.04212.50
5.4.300.0060.03712.50
5.4.290.0090.03712.50
5.4.280.0050.03812.40
5.4.270.0070.03712.39
5.4.260.0100.04212.40
5.4.250.0070.04112.39
5.4.240.0050.03612.39
5.4.230.0060.03712.38
5.4.220.0040.03912.38
5.4.210.0050.03612.39
5.4.200.0030.03912.39
5.4.190.0060.03512.39
5.4.180.0080.03312.38
5.4.170.0060.03512.39
5.4.160.0070.03412.39
5.4.150.0050.03612.39
5.4.140.0050.03712.07
5.4.130.0070.03412.06
5.4.120.0040.03612.02
5.4.110.0090.03112.01
5.4.100.0040.03612.01
5.4.90.0030.03912.01
5.4.80.0050.03712.01
5.4.70.0080.03212.01
5.4.60.0050.03512.01
5.4.50.0050.04012.00
5.4.40.0090.03112.00
5.4.30.0040.03611.99
5.4.20.0060.03512.00
5.4.10.0060.04411.99
5.4.00.0040.03711.48
5.3.290.0040.04112.80
5.3.280.0060.03812.71
5.3.270.0080.04212.72
5.3.260.0100.04312.72
5.3.250.0060.03512.72
5.3.240.0030.03912.72
5.3.230.0060.03912.71
5.3.220.0080.03812.68
5.3.210.0080.03412.68
5.3.200.0090.03312.68
5.3.190.0030.03912.68
5.3.180.0050.03712.67
5.3.170.0050.03612.67
5.3.160.0040.03612.67
5.3.150.0070.04212.68
5.3.140.0050.03512.66
5.3.130.0030.04012.66
5.3.120.0040.04212.66
5.3.110.0070.03712.66
5.3.100.0080.03512.12
5.3.90.0090.04112.11
5.3.80.0050.03612.09
5.3.70.0100.03112.09
5.3.60.0070.04412.08
5.3.50.0060.04112.02
5.3.40.0030.03912.02
5.3.30.0020.04011.98
5.3.20.0080.03111.78
5.3.10.0070.03211.73
5.3.00.0050.03611.72
5.2.170.0010.0339.22
5.2.160.0020.0329.22
5.2.150.0060.0389.22
5.2.140.0080.0279.22
5.2.130.0050.0279.18
5.2.120.0090.0399.18
5.2.110.0060.0279.19
5.2.100.0040.0279.18
5.2.90.0100.0329.18
5.2.80.0040.0309.18
5.2.70.0030.0319.17
5.2.60.0080.0359.13
5.2.50.0030.0379.10
5.2.40.0070.0269.08
5.2.30.0060.0289.05
5.2.20.0030.0319.04
5.2.10.0070.0268.94
5.2.00.0080.0318.81
5.1.60.0040.0398.09
5.1.50.0040.0248.09
5.1.40.0040.0248.06
5.1.30.0040.0318.42
5.1.20.0050.0268.44
5.1.10.0030.0268.17
5.1.00.0040.0258.17
5.0.50.0050.0216.64
5.0.40.0020.0206.50
5.0.30.0030.0326.31
5.0.20.0030.0226.28
5.0.10.0020.0216.27
5.0.00.0030.0306.25
4.4.90.0050.0174.78
4.4.80.0020.0194.76
4.4.70.0020.0154.76
4.4.60.0000.0244.75
4.4.50.0040.0184.77
4.4.40.0020.0254.71
4.4.30.0030.0214.76
4.4.20.0030.0154.84
4.4.10.0020.0164.85
4.4.00.0030.0274.75
4.3.110.0030.0154.67
4.3.100.0020.0154.66
4.3.90.0030.0144.63
4.3.80.0030.0234.58
4.3.70.0020.0154.63
4.3.60.0050.0164.63
4.3.50.0020.0194.62
4.3.40.0030.0234.54
4.3.30.0030.0143.30
4.3.20.0020.0163.28
4.3.10.0030.0143.25
4.3.00.0070.0236.92

preferences:
73.91 ms | 401 KiB | 5 Q