3v4l.org

run code in 300+ PHP versions simultaneously
<?php class testA { private $b = 123; public $a = 4; public function __construct() { $c = 5; } } $className = "testA"; $object = unserialize( sprintf('O:%d:"%s":0:{}', strlen($className), $className) ); var_dump($object);

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.40.0090.00618.37
8.3.30.0180.00419.04
8.3.20.0040.00420.29
8.3.10.0000.00723.69
8.3.00.0040.00419.05
8.2.170.0130.00722.96
8.2.160.0070.01420.43
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0040.00420.94
8.2.110.0090.00022.07
8.2.100.0090.00317.84
8.2.90.0060.00319.09
8.2.80.0040.00417.97
8.2.70.0050.00317.50
8.2.60.0040.00417.80
8.2.50.0000.00818.07
8.2.40.0040.00421.25
8.2.30.0070.00018.29
8.2.20.0040.00417.61
8.2.10.0050.00317.96
8.2.00.0000.00717.55
8.1.270.0080.00023.96
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0090.00022.03
8.1.230.0040.00718.80
8.1.220.0040.00417.74
8.1.210.0090.00018.77
8.1.200.0070.00317.23
8.1.190.0000.00917.22
8.1.180.0040.00418.10
8.1.170.0040.00418.55
8.1.160.0080.00021.81
8.1.150.0040.00418.52
8.1.140.0000.00717.31
8.1.130.0070.00017.86
8.1.120.0000.00717.43
8.1.110.0000.00717.41
8.1.100.0070.00017.33
8.1.90.0000.00817.35
8.1.80.0040.00417.42
8.1.70.0070.00017.34
8.1.60.0000.00817.55
8.1.50.0070.00017.48
8.1.40.0000.00817.34
8.1.30.0000.00917.56
8.1.20.0080.00017.56
8.1.10.0040.00417.52
8.1.00.0040.00417.44
8.0.300.0000.00718.77
8.0.290.0070.00017.15
8.0.280.0000.00718.37
8.0.270.0040.00417.09
8.0.260.0030.00317.19
8.0.250.0000.00816.83
8.0.240.0040.00416.82
8.0.230.0030.00316.80
8.0.220.0030.00416.79
8.0.210.0070.00016.92
8.0.200.0000.00616.96
8.0.190.0040.00416.81
8.0.180.0040.00416.91
8.0.170.0030.00516.90
8.0.160.0040.00416.80
8.0.150.0030.00316.77
8.0.140.0000.00716.87
8.0.130.0060.00313.24
8.0.120.0000.00816.89
8.0.110.0040.00416.82
8.0.100.0000.00716.92
8.0.90.0080.00016.88
8.0.80.0090.00716.88
8.0.70.0040.00416.77
8.0.60.0000.00816.76
8.0.50.0000.00716.88
8.0.30.0090.01016.93
8.0.20.0100.00817.40
8.0.10.0000.00717.00
8.0.00.0140.00516.71
7.4.330.0000.00515.00
7.4.320.0050.00316.49
7.4.300.0030.00516.48
7.4.290.0030.00316.43
7.4.280.0080.00016.42
7.4.270.0040.00416.59
7.4.260.0030.00316.41
7.4.250.0080.00016.35
7.4.240.0030.00416.47
7.4.230.0030.00316.34
7.4.220.0070.01116.47
7.4.210.0130.00316.50
7.4.200.0000.00816.41
7.4.190.0000.00716.67
7.4.160.0040.01216.39
7.4.150.0090.00917.40
7.4.140.0140.00717.86
7.4.130.0090.00816.53
7.4.120.0130.00716.39
7.4.110.0120.00416.54
7.4.100.0040.01316.46
7.4.90.0110.00616.45
7.4.80.0150.00319.39
7.4.70.0130.00316.52
7.4.60.0120.00416.33
7.4.50.0040.00416.05
7.4.40.0070.01316.46
7.4.30.0040.01816.21
7.4.00.0030.01314.87
7.3.330.0060.00013.19
7.3.320.0050.00213.24
7.3.310.0000.00716.27
7.3.300.0030.00316.30
7.3.290.0090.00616.18
7.3.280.0100.00416.24
7.3.270.0180.00717.40
7.3.260.0090.01216.54
7.3.250.0070.01016.31
7.3.240.0060.01716.64
7.3.230.0070.01016.39
7.3.210.0060.01016.38
7.3.200.0040.01219.39
7.3.190.0170.00316.36
7.3.180.0070.01016.27
7.3.170.0070.01416.33
7.3.160.0060.00916.38
7.3.120.0080.00714.78
7.3.110.0090.00614.91
7.3.100.0030.00714.60
7.3.90.0040.00814.68
7.3.80.0030.01314.79
7.3.70.0030.00714.37
7.3.60.0070.00714.79
7.3.50.0080.00314.69
7.3.40.0030.01014.49
7.3.30.0030.01114.81
7.3.20.0030.01016.73
7.3.10.0040.00416.43
7.3.00.0070.00716.63
7.2.330.0210.00316.38
7.2.320.0030.01316.62
7.2.310.0080.00816.74
7.2.300.0060.01116.38
7.2.290.0160.00316.39
7.2.250.0090.00914.83
7.2.240.0120.00315.09
7.2.230.0110.00315.10
7.2.220.0060.01014.91
7.2.210.0080.00814.54
7.2.200.0090.00314.81
7.2.190.0070.00714.91
7.2.180.0110.00715.01
7.2.170.0030.01414.73
7.2.60.0000.01216.77
7.1.330.0110.00415.55
7.1.320.0060.00315.75
7.1.310.0110.00416.07
7.1.300.0000.01315.54
7.1.290.0060.00615.40
7.1.280.0090.00615.71
7.1.270.0040.01215.48
7.1.260.0030.00715.72
7.1.200.0060.00615.85
7.1.100.0040.00718.05
7.1.70.0000.00717.07
7.1.60.0070.01019.46
7.1.50.0070.01316.86
7.1.00.0000.08022.45
7.0.200.0170.00316.73
7.0.140.0000.07722.01
7.0.60.0170.06720.02
7.0.50.0030.07717.86
7.0.40.0030.06720.09
7.0.30.0230.08720.24
7.0.20.0230.07720.09
7.0.10.0030.05020.15
7.0.00.0130.05020.22
5.6.280.0000.07720.78
5.6.210.0070.04320.57
5.6.200.0070.06018.18
5.6.190.0070.05320.48
5.6.180.0070.05320.57
5.6.170.0300.04320.56
5.6.160.0070.08320.39
5.6.150.0000.07718.17
5.6.140.0130.05018.18
5.6.130.0030.08718.24
5.6.120.0100.08721.00
5.6.110.0300.06321.14
5.6.100.0130.08021.06
5.6.90.0170.07320.99
5.6.80.0070.08320.54
5.5.350.4200.03320.40
5.5.340.0030.06018.07
5.5.330.0070.04320.44
5.5.320.0230.04320.27
5.5.310.0300.04020.32
5.5.300.0100.08017.97
5.5.290.0030.06717.90
5.5.280.0170.07720.88
5.5.270.0000.09020.68
5.5.260.0070.09020.68
5.5.250.0070.08320.69
5.5.240.0170.06720.04
5.4.450.0430.04349.64
5.4.440.0230.04042.52
5.4.430.0170.04037.99
5.4.420.0200.05037.24
5.4.410.0500.04333.67
5.4.400.0200.04031.63
5.4.390.0370.04029.18
5.4.380.0470.04718.59
5.4.370.0330.05018.51
5.4.360.0400.05318.52
5.4.350.0200.06018.51
5.4.340.0400.07318.86
5.4.320.0050.03712.50
5.4.310.0090.03512.50
5.4.300.0160.04012.50
5.4.290.0140.03112.50
5.4.280.0050.03712.39
5.4.270.0100.03612.39
5.4.260.0090.03812.39
5.4.250.0070.04312.39
5.4.240.0050.04212.39
5.4.230.0060.04212.39
5.4.220.0050.04112.39
5.4.210.0090.03512.38
5.4.200.0050.04112.39
5.4.190.0100.03512.38
5.4.180.0060.04312.38
5.4.170.0060.04312.39
5.4.160.0080.04012.39
5.4.150.0090.04812.39
5.4.140.0090.04912.07
5.4.130.0050.04912.06
5.4.120.0070.06912.02
5.4.110.0080.05112.01
5.4.100.0110.04812.01
5.4.90.0090.04912.01
5.4.80.0110.04912.01
5.4.70.0080.04612.01
5.4.60.0060.03512.01
5.4.50.0070.03712.01
5.4.40.0090.03311.99
5.4.30.0080.03612.00
5.4.20.0120.03411.99
5.4.10.0050.04012.00
5.4.00.0120.03411.49
5.3.290.0050.04112.80
5.3.280.0070.04212.71
5.3.270.0100.04212.73
5.3.260.0130.03712.72
5.3.250.0090.05712.72
5.3.240.0060.05812.71
5.3.230.0130.05412.71
5.3.220.0070.05312.68
5.3.210.0120.07612.68
5.3.200.0050.05512.68
5.3.190.0030.05312.68
5.3.180.0100.05512.67
5.3.170.0150.05012.67
5.3.160.0110.05512.67
5.3.150.0090.05412.67
5.3.140.0140.05012.66
5.3.130.0100.05912.66
5.3.120.0200.05912.66
5.3.110.0160.06912.66
5.3.100.0070.06312.11
5.3.90.0160.05412.10
5.3.80.0120.05212.09
5.3.70.0120.05512.09
5.3.60.0060.05712.08
5.3.50.0120.05612.03
5.3.40.0140.05312.03
5.3.30.0120.05411.98
5.3.20.0080.06111.77
5.3.10.0130.06011.73
5.3.00.0120.06111.72
5.2.170.0050.0589.22
5.2.160.0100.0479.22
5.2.150.0060.0519.22
5.2.140.0090.0479.22
5.2.130.0060.0479.18
5.2.120.0100.0419.18
5.2.110.0110.0419.19
5.2.100.0130.0399.18
5.2.90.0100.0389.18
5.2.80.0090.0399.18
5.2.70.0080.0409.18
5.2.60.0080.0409.13
5.2.50.0070.0409.10
5.2.40.0070.0389.07
5.2.30.0050.0379.05
5.2.20.0050.0309.03
5.2.10.0030.0338.94
5.2.00.0050.0328.81
5.1.60.0070.0268.09
5.1.50.0040.0288.08
5.1.40.0040.0308.07
5.1.30.0060.0298.42
5.1.20.0100.0288.44
5.1.10.0040.0318.17
5.1.00.0060.0278.16
5.0.50.0030.0246.64
5.0.40.0080.0196.50
5.0.30.0060.0326.32
5.0.20.0050.0236.28
5.0.10.0070.0266.26
5.0.00.0080.0396.25
4.4.90.0050.0224.78
4.4.80.0040.0224.75
4.4.70.0020.0244.76
4.4.60.0090.0164.76
4.4.50.0060.0204.77
4.4.40.0040.0354.71
4.4.30.0040.0234.76
4.4.20.0060.0214.84
4.4.10.0060.0204.85
4.4.00.0050.0304.75
4.3.110.0050.0194.67
4.3.100.0040.0194.66
4.3.90.0030.0194.63
4.3.80.0050.0244.58
4.3.70.0030.0164.63
4.3.60.0090.0114.63
4.3.50.0050.0184.62
4.3.40.0050.0254.54
4.3.30.0080.0113.30
4.3.20.0050.0153.28
4.3.10.0040.0153.24
4.3.00.0130.01314.73

preferences:
46.15 ms | 400 KiB | 5 Q