3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Test\SuperTest{ class testA { private $b = 123; public function __construct() { $a = 5; } } } namespace{ $className = "Test\SuperTest\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.60.0120.00316.50
8.3.50.0180.01122.06
8.3.40.0120.00318.79
8.3.30.0140.00018.82
8.3.20.0040.00420.34
8.3.10.0080.00023.70
8.3.00.0000.00719.17
8.2.180.0150.00018.54
8.2.170.0110.00322.96
8.2.160.0070.01020.53
8.2.150.0030.00624.18
8.2.140.0060.00324.66
8.2.130.0070.00026.16
8.2.120.0030.00520.75
8.2.110.0100.00021.12
8.2.100.0080.00417.84
8.2.90.0080.00018.03
8.2.80.0080.00017.97
8.2.70.0000.00817.50
8.2.60.0000.00817.50
8.2.50.0000.00817.55
8.2.40.0030.00517.93
8.2.30.0070.00018.05
8.2.20.0040.00417.66
8.2.10.0000.00718.12
8.2.00.0040.00417.68
8.1.280.0070.00725.92
8.1.270.0040.00422.19
8.1.260.0080.00026.35
8.1.250.0020.00528.09
8.1.240.0030.00722.29
8.1.230.0040.00820.92
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0000.00817.13
8.1.190.0060.00317.23
8.1.180.0000.00818.10
8.1.170.0000.00817.62
8.1.160.0000.00721.89
8.1.150.0070.00018.65
8.1.140.0050.00317.28
8.1.130.0030.00317.80
8.1.120.0050.00217.26
8.1.110.0070.00017.40
8.1.100.0040.00417.34
8.1.90.0040.00417.40
8.1.80.0050.00317.39
8.1.70.0000.00717.36
8.1.60.0050.00217.48
8.1.50.0000.00817.30
8.1.40.0000.00717.34
8.1.30.0030.00517.46
8.1.20.0080.00017.45
8.1.10.0000.00717.40
8.1.00.0040.00417.36
8.0.300.0030.00319.86
8.0.290.0030.00616.75
8.0.280.0000.00718.29
8.0.270.0030.00317.19
8.0.260.0070.00018.28
8.0.250.0030.00316.96
8.0.240.0030.00316.95
8.0.230.0040.00416.98
8.0.220.0070.00016.93
8.0.210.0040.00416.81
8.0.200.0030.00316.83
8.0.190.0060.00316.82
8.0.180.0040.00416.77
8.0.170.0040.00416.96
8.0.160.0070.00016.77
8.0.150.0040.00416.89
8.0.140.0040.00416.78
8.0.130.0000.00713.33
8.0.120.0050.00216.81
8.0.110.0030.00616.95
8.0.100.0000.00716.86
8.0.90.0000.00816.97
8.0.80.0130.00316.85
8.0.70.0040.00416.75
8.0.60.0000.00716.77
8.0.50.0000.00716.94
8.0.30.0100.00917.03
8.0.20.0080.01117.40
8.0.10.0050.00216.93
8.0.00.0100.01216.54
7.4.330.0050.00015.13
7.4.320.0050.00316.50
7.4.300.0030.00316.53
7.4.290.0070.00016.45
7.4.280.0090.00016.44
7.4.270.0030.00516.51
7.4.260.0060.00616.50
7.4.250.0000.00816.46
7.4.240.0020.00516.38
7.4.230.0030.00316.54
7.4.220.0060.01216.56
7.4.210.0110.00316.52
7.4.200.0070.00016.64
7.4.190.0070.00016.58
7.4.160.0090.00616.56
7.4.150.0120.00617.40
7.4.140.0160.00317.86
7.4.130.0100.00816.42
7.4.120.0070.01516.48
7.4.110.0130.00316.54
7.4.100.0070.01016.44
7.4.90.0100.00716.35
7.4.80.0110.00619.39
7.4.70.0030.01316.56
7.4.60.0080.00816.36
7.4.50.0060.00316.28
7.4.40.0030.01316.50
7.4.30.0060.01216.44
7.4.00.0120.00514.91
7.3.330.0070.00013.31
7.3.320.0000.00613.18
7.3.310.0040.00416.41
7.3.300.0070.00016.25
7.3.290.0060.01316.36
7.3.280.0100.00916.31
7.3.270.0070.01017.40
7.3.260.0140.00316.49
7.3.250.0140.00816.41
7.3.240.0130.00716.43
7.3.230.0110.00716.39
7.3.210.0030.01316.48
7.3.200.0060.01519.39
7.3.190.0150.00716.31
7.3.180.0070.00916.58
7.3.170.0110.00616.41
7.3.160.0080.00816.31
7.3.120.0090.00714.74
7.3.110.0100.00714.48
7.3.100.0090.00614.82
7.3.90.0060.00614.66
7.3.80.0080.00415.06
7.3.70.0050.00314.83
7.3.60.0040.01114.55
7.3.50.0000.01014.92
7.3.40.0030.01014.61
7.3.30.0000.01014.55
7.3.20.0070.00416.45
7.3.10.0070.00716.62
7.3.00.0070.00716.63
7.2.330.0180.00416.32
7.2.320.0090.01216.68
7.2.310.0070.01016.31
7.2.300.0030.01416.33
7.2.290.0000.01716.57
7.2.250.0130.00614.77
7.2.240.0090.01214.95
7.2.230.0090.00614.80
7.2.220.0130.00015.05
7.2.210.0040.00714.86
7.2.200.0070.00715.05
7.2.190.0070.00414.83
7.2.180.0030.01014.77
7.2.170.0000.01014.92
7.2.60.0070.00816.37
7.2.00.0060.00619.47
7.1.330.0000.01315.86
7.1.320.0070.00415.91
7.1.310.0070.00415.89
7.1.300.0000.00915.72
7.1.290.0070.00315.91
7.1.280.0030.01315.65
7.1.270.0030.00615.80
7.1.260.0090.00615.81
7.1.200.0040.00715.89
7.1.100.0040.01118.15
7.1.70.0000.01516.91
7.1.60.0040.01119.46
7.1.50.0060.00616.71
7.1.00.0070.07322.37
7.0.200.0060.00616.70
7.0.140.0030.06721.92
7.0.60.0130.07320.07
7.0.50.0070.08317.91
7.0.40.0070.08720.18
7.0.30.0270.06720.19
7.0.20.0200.04020.23
7.0.10.0100.06320.09
7.0.00.0170.04320.34
5.6.280.0030.06321.15
5.6.210.0000.07320.71
5.6.200.0100.08318.18
5.6.190.0000.05320.64
5.6.180.0270.07720.61
5.6.170.0300.06720.48
5.6.160.0100.08020.40
5.6.150.0070.05718.18
5.6.140.0000.04318.17
5.6.130.0100.06018.23
5.6.120.0030.09021.12
5.6.110.0130.07721.08
5.6.100.0070.03721.01
5.6.90.0100.07321.13
5.6.80.0100.04320.51
5.5.350.0300.08320.41
5.5.340.0000.08718.04
5.5.330.0030.04720.37
5.5.320.0100.06720.36
5.5.310.0200.04320.50
5.5.300.0070.07718.08
5.5.290.0000.04318.04
5.5.280.0070.08320.73
5.5.270.0070.03720.85
5.5.260.0100.07320.77
5.5.250.0000.05020.69
5.5.240.0100.06720.26
5.4.450.0670.06019.31
5.4.440.1000.06319.45
5.4.430.0970.06319.16
5.4.420.1200.05019.16
5.4.410.1030.05319.47
5.4.400.1030.05719.28
5.4.390.0530.04719.26
5.4.380.0430.06318.56
5.4.370.0430.05018.49
5.4.360.0400.06018.72
5.4.350.0470.05718.51
5.4.340.0430.05718.66
5.4.320.0040.03912.50
5.4.310.0070.04312.50
5.4.300.0060.04712.50
5.4.290.0080.04712.50
5.4.280.0060.05112.40
5.4.270.0110.04212.39
5.4.260.0110.04512.39
5.4.250.0090.04812.40
5.4.240.0100.05212.39
5.4.230.0090.05412.39
5.4.220.0080.05412.39
5.4.210.0160.04512.39
5.4.200.0130.05312.39
5.4.190.0100.05412.38
5.4.180.0100.05612.38
5.4.170.0110.05112.39
5.4.160.0100.04712.39
5.4.150.0070.04812.38
5.4.140.0090.04912.07
5.4.130.0080.04712.06
5.4.120.0100.04512.02
5.4.110.0100.04512.02
5.4.100.0090.04412.01
5.4.90.0150.04312.02
5.4.80.0130.04412.01
5.4.70.0130.04512.00
5.4.60.0140.04312.01
5.4.50.0060.05112.01
5.4.40.0090.04611.99
5.4.30.0090.04812.00
5.4.20.0120.04512.00
5.4.10.0100.04511.99
5.4.00.0070.05011.49
5.3.290.0100.03812.80
5.3.280.0070.04912.71
5.3.270.0090.04712.72
5.3.260.0070.05312.72
5.3.250.0080.05112.72
5.3.240.0090.05312.72
5.3.230.0080.05212.71
5.3.220.0120.04912.68
5.3.210.0150.04812.68
5.3.200.0150.04512.68
5.3.190.0090.05312.68
5.3.180.0100.04912.67
5.3.170.0050.06112.67
5.3.160.0160.06412.67
5.3.150.0060.07212.67
5.3.140.0080.05012.66
5.3.130.0130.04712.66
5.3.120.0090.05212.66
5.3.110.0070.05412.66
5.3.100.0080.04812.12
5.3.90.0050.05212.10
5.3.80.0080.04712.09
5.3.70.0080.05012.11
5.3.60.0090.04612.08
5.3.50.0070.04912.03
5.3.40.0060.05112.03
5.3.30.0060.04911.98
5.3.20.0100.04311.77
5.3.10.0060.04911.73
5.3.00.0080.05111.72
5.2.170.0050.0429.18
5.2.160.0070.0389.18
5.2.150.0060.0419.18
5.2.140.0080.0399.18
5.2.130.0070.0389.14
5.2.120.0070.0389.14
5.2.110.0050.0399.14
5.2.100.0080.0329.14
5.2.90.0060.0309.14
5.2.80.0040.0349.14
5.2.70.0070.0359.14
5.2.60.0070.0309.09
5.2.50.0080.0309.06
5.2.40.0040.0329.04
5.2.30.0070.0309.01
5.2.20.0040.0329.00
5.2.10.0080.0298.93
5.2.00.0080.0338.78
5.1.60.0050.0248.07
5.1.50.0040.0258.06
5.1.40.0040.0378.05
5.1.30.0060.0388.39
5.1.20.0050.0338.41
5.1.10.0060.0258.14
5.1.00.0050.0278.14
5.0.50.0040.0216.62
5.0.40.0040.0216.48
5.0.30.0070.0336.29
5.0.20.0040.0266.27
5.0.10.0060.0266.24
5.0.00.0040.0386.23
4.4.90.0030.0214.78
4.4.80.0020.0234.75
4.4.70.0030.0214.75
4.4.60.0030.0214.75
4.4.50.0020.0234.77
4.4.40.0030.0354.71
4.4.30.0020.0234.76
4.4.20.0030.0224.84
4.4.10.0030.0224.85
4.4.00.0030.0344.75
4.3.110.0040.0224.67
4.3.100.0040.0214.66
4.3.90.0070.0174.63
4.3.80.0030.0324.59
4.3.70.0060.0194.63
4.3.60.0060.0184.63
4.3.50.0030.0234.63
4.3.40.0050.0314.54
4.3.30.0020.0223.28
4.3.20.0050.0193.26
4.3.10.0030.0213.22
4.3.00.0030.01716.14

preferences:
41.83 ms | 401 KiB | 5 Q