3v4l.org

run code in 300+ PHP versions simultaneously
<?php class testA { private $b = 123; public $a = 4; public function test() { $this->b = 1234; } } $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.60.0040.01116.75
8.3.50.0120.00721.91
8.3.40.0070.00718.52
8.3.30.0150.00019.10
8.3.20.0000.00820.28
8.3.10.0040.00423.55
8.3.00.0040.00419.15
8.2.180.0080.00816.50
8.2.170.0110.00422.96
8.2.160.0130.00720.36
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0030.00520.78
8.2.110.0060.00322.08
8.2.100.0060.00617.64
8.2.90.0040.00419.28
8.2.80.0090.00017.97
8.2.70.0100.00017.25
8.2.60.0050.00217.80
8.2.50.0000.00818.07
8.2.40.0060.00321.09
8.2.30.0070.00018.11
8.2.20.0040.00417.49
8.2.10.0000.00717.93
8.2.00.0000.00817.68
8.1.280.0080.00825.92
8.1.270.0040.00422.03
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0090.00023.88
8.1.230.0040.00719.16
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0060.00317.22
8.1.190.0000.00817.22
8.1.180.0000.00818.10
8.1.170.0000.00818.66
8.1.160.0050.00321.82
8.1.150.0000.00718.49
8.1.140.0000.00817.38
8.1.130.0030.00317.80
8.1.120.0000.00717.30
8.1.110.0040.00417.43
8.1.100.0000.00917.41
8.1.90.0070.00317.28
8.1.80.0000.00717.42
8.1.70.0040.00417.33
8.1.60.0000.00717.47
8.1.50.0040.00417.48
8.1.40.0000.00817.43
8.1.30.0090.00017.63
8.1.20.0040.00417.53
8.1.10.0040.00417.53
8.1.00.0000.00717.43
8.0.300.0080.00018.77
8.0.290.0070.00016.93
8.0.280.0000.00718.38
8.0.270.0000.00717.18
8.0.260.0060.00017.20
8.0.250.0030.00316.95
8.0.240.0030.00316.85
8.0.230.0080.00016.95
8.0.220.0000.00716.91
8.0.210.0040.00316.91
8.0.200.0030.00317.01
8.0.190.0000.00716.90
8.0.180.0040.00416.93
8.0.170.0040.00416.82
8.0.160.0030.00516.72
8.0.150.0040.00316.74
8.0.140.0000.00716.89
8.0.130.0000.00713.30
8.0.120.0040.00416.73
8.0.110.0040.00316.83
8.0.100.0050.00316.86
8.0.90.0040.00416.84
8.0.80.0040.01116.81
8.0.70.0000.00716.76
8.0.60.0040.00417.00
8.0.50.0040.00416.79
8.0.30.0130.01017.07
8.0.20.0110.00817.40
8.0.10.0040.00417.03
8.0.00.0150.00816.71
7.4.330.0030.00315.00
7.4.320.0080.00016.46
7.4.300.0060.00016.52
7.4.290.0030.00316.48
7.4.280.0000.00916.34
7.4.270.0000.00716.53
7.4.260.0110.00016.52
7.4.250.0000.00716.39
7.4.240.0040.00416.48
7.4.230.0070.00016.33
7.4.220.0070.01016.30
7.4.210.0070.00716.49
7.4.200.0050.00316.63
7.4.190.0040.00416.60
7.4.160.0130.00416.52
7.4.150.0120.00617.40
7.4.140.0140.00317.86
7.4.130.0050.01116.45
7.4.120.0130.00516.46
7.4.110.0100.00716.40
7.4.100.0160.00716.31
7.4.90.0030.01316.43
7.4.80.0030.01319.39
7.4.70.0110.01116.54
7.4.60.0070.01016.32
7.4.50.0030.00616.15
7.4.40.0120.00616.46
7.4.30.0120.00616.46
7.4.00.0030.01315.06
7.3.330.0030.00313.07
7.3.320.0050.00013.07
7.3.310.0040.00416.18
7.3.300.0000.00616.16
7.3.290.0070.01416.30
7.3.280.0110.00816.23
7.3.270.0070.01017.40
7.3.260.0110.00716.57
7.3.250.0100.00716.32
7.3.240.0030.01316.50
7.3.230.0000.01716.54
7.3.210.0150.00916.57
7.3.200.0040.01419.39
7.3.190.0090.01316.62
7.3.180.0100.00616.36
7.3.170.0110.00716.53
7.3.160.0110.00516.39
7.3.120.0030.00914.64
7.2.330.0110.01116.60
7.2.320.0090.00916.64
7.2.310.0070.01016.60
7.2.300.0110.00616.64
7.2.290.0150.00416.57
7.2.00.0060.00619.27
7.1.100.0070.00718.09
7.1.70.0040.00717.12
7.1.60.0130.00919.46
7.1.50.0130.00616.95
7.1.00.0070.07322.45
7.0.200.0080.00316.65
7.0.140.0030.07322.04
7.0.60.0000.04719.99
7.0.50.0070.06017.84
7.0.40.0030.05319.96
7.0.30.0270.08320.34
7.0.20.0370.07020.26
7.0.10.0070.04020.26
7.0.00.0000.09020.15
5.6.280.0070.07021.07
5.6.210.0170.06320.70
5.6.200.0030.04318.29
5.6.190.0170.08020.61
5.6.180.0370.05020.34
5.6.170.0300.06320.41
5.6.160.0130.08020.48
5.6.150.0070.08018.28
5.6.140.0100.07718.21
5.6.130.0070.04318.15
5.6.120.0000.07320.99
5.6.110.0070.08320.89
5.6.100.0030.05021.07
5.6.90.0070.08020.88
5.6.80.0270.05020.38
5.5.350.4130.04020.42
5.5.340.0070.07717.99
5.5.330.0100.08020.19
5.5.320.0300.05020.27
5.5.310.0230.08320.32
5.5.300.0100.08018.00
5.5.290.0070.05017.99
5.5.280.0100.08720.90
5.5.270.0030.05320.82
5.5.260.0170.07020.67
5.5.250.0000.09020.71
5.5.240.0130.07020.29
5.4.450.0430.03749.64
5.4.440.0300.04742.52
5.4.430.0030.05337.98
5.4.420.0270.04336.05
5.4.410.0430.04333.01
5.4.400.0170.04331.63
5.4.390.0500.04328.65
5.4.380.0400.04718.81
5.4.370.0300.05718.49
5.4.360.0330.04718.79
5.4.350.0300.06018.76
5.4.340.0430.07318.59
5.4.320.0050.03712.50
5.4.310.0070.05012.50
5.4.300.0080.03512.50
5.4.290.0080.03912.50
5.4.280.0040.03812.39
5.4.270.0050.04012.39
5.4.260.0050.04212.40
5.4.250.0040.04312.39
5.4.240.0060.03912.39
5.4.230.0040.04212.39
5.4.220.0130.03512.39
5.4.210.0080.04012.39
5.4.200.0140.03512.38
5.4.190.0060.03612.39
5.4.180.0090.03312.38
5.4.170.0110.03812.40
5.4.160.0060.04112.39
5.4.150.0070.03612.39
5.4.140.0120.03112.07
5.4.130.0060.03912.05
5.4.120.0050.03712.02
5.4.110.0040.03912.02
5.4.100.0060.03812.02
5.4.90.0080.03812.01
5.4.80.0060.04012.01
5.4.70.0090.04612.01
5.4.60.0090.03912.01
5.4.50.0100.03312.01
5.4.40.0040.03812.00
5.4.30.0140.02911.99
5.4.20.0040.04011.99
5.4.10.0090.03911.99
5.4.00.0090.04211.48
5.3.290.0040.04212.80
5.3.280.0080.03912.71
5.3.270.0060.04412.72
5.3.260.0030.04512.72
5.3.250.0050.03912.72
5.3.240.0060.03912.72
5.3.230.0090.03712.71
5.3.220.0070.04212.68
5.3.210.0040.04612.68
5.3.200.0030.04412.68
5.3.190.0060.04312.68
5.3.180.0050.04112.67
5.3.170.0080.03612.67
5.3.160.0080.05612.67
5.3.150.0090.05812.67
5.3.140.0120.05212.66
5.3.130.0090.04512.66
5.3.120.0080.04112.66
5.3.110.0080.04112.66
5.3.100.0080.03812.12
5.3.90.0090.03812.10
5.3.80.0070.04012.09
5.3.70.0090.03712.09
5.3.60.0080.04112.08
5.3.50.0090.04212.03
5.3.40.0120.03612.03
5.3.30.0110.03811.98
5.3.20.0090.03611.77
5.3.10.0080.03511.73
5.3.00.0040.04311.72
5.2.170.0080.0329.22
5.2.160.0080.0319.22
5.2.150.0060.0359.22
5.2.140.0060.0429.22
5.2.130.0100.0369.18
5.2.120.0040.0379.18
5.2.110.0050.0309.19
5.2.100.0060.0299.18
5.2.90.0060.0309.18
5.2.80.0050.0339.17
5.2.70.0080.0309.17
5.2.60.0060.0309.13
5.2.50.0050.0309.09
5.2.40.0060.0289.07
5.2.30.0060.0289.05
5.2.20.0070.0289.03
5.2.10.0050.0348.94
5.2.00.0090.0288.81
5.1.60.0060.0268.09
5.1.50.0050.0278.08
5.1.40.0070.0338.07
5.1.30.0070.0358.42
5.1.20.0040.0398.45
5.1.10.0080.0338.16
5.1.00.0100.0338.16
5.0.50.0050.0296.65
5.0.40.0030.0296.50
5.0.30.0060.0406.32
5.0.20.0090.0236.28
5.0.10.0040.0306.25
5.0.00.0040.0346.25
4.4.90.0020.0164.78
4.4.80.0040.0144.75
4.4.70.0030.0154.76
4.4.60.0050.0144.76
4.4.50.0020.0164.77
4.4.40.0030.0254.71
4.4.30.0040.0144.76
4.4.20.0010.0174.85
4.4.10.0050.0204.85
4.4.00.0020.0334.76
4.3.110.0030.0244.66
4.3.100.0020.0184.66
4.3.90.0040.0164.64
4.3.80.0020.0274.58
4.3.70.0000.0204.63
4.3.60.0030.0144.63
4.3.50.0040.0144.63
4.3.40.0030.0244.54
4.3.30.0040.0193.30
4.3.20.0020.0173.28
4.3.10.0010.0163.23
4.3.00.0030.01728.01

preferences:
46.05 ms | 401 KiB | 5 Q