3v4l.org

run code in 300+ PHP versions simultaneously
<?php class CacheContextValue { protected $value; protected $tags = []; public function __construct($value, $tags = []) { $this->value = $value; $this->tags = $tags; } } for ($i = 0; $i < 100000; $i++) { $x = new CacheContextValue('asdfsadf'); }

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.02518.18
8.3.50.0100.01921.90
8.3.40.0060.02218.68
8.3.30.0100.01618.94
8.3.20.0070.00720.27
8.3.10.0030.01021.74
8.3.00.0060.00919.04
8.2.180.0100.02416.63
8.2.170.0130.01022.96
8.2.160.0150.01519.38
8.2.150.0030.00924.18
8.2.140.0040.00824.66
8.2.130.0030.00926.16
8.2.120.0030.00921.07
8.2.110.0030.01519.31
8.2.100.0130.00717.63
8.2.90.0040.01119.09
8.2.80.0070.01017.97
8.2.70.0000.01717.36
8.2.60.0000.01618.04
8.2.50.0030.01318.07
8.2.40.0030.01219.88
8.2.30.0000.01518.08
8.2.20.0040.01117.62
8.2.10.0030.01218.12
8.2.00.0030.01817.96
8.1.280.0000.02325.92
8.1.270.0000.01320.34
8.1.260.0000.01226.35
8.1.250.0060.00628.09
8.1.240.0030.01423.96
8.1.230.0090.00918.80
8.1.220.0030.01217.74
8.1.210.0040.01118.77
8.1.200.0070.01017.47
8.1.190.0030.01217.23
8.1.180.0030.01218.10
8.1.170.0000.01520.38
8.1.160.0060.00921.95
8.1.150.0060.00918.83
8.1.140.0060.00917.38
8.1.130.0000.01517.75
8.1.120.0000.01417.40
8.1.110.0060.00817.38
8.1.100.0000.02017.33
8.1.90.0070.00717.38
8.1.80.0030.01017.39
8.1.70.0040.01117.23
8.1.60.0040.01417.57
8.1.50.0070.01017.57
8.1.40.0030.01417.46
8.1.30.0030.01317.67
8.1.20.0030.01317.64
8.1.10.0000.01617.48
8.1.00.0030.01317.32
8.0.300.0070.00718.77
8.0.290.0030.01416.63
8.0.280.0060.00818.29
8.0.270.0060.00917.18
8.0.260.0030.01017.11
8.0.250.0000.01416.88
8.0.240.0040.01116.87
8.0.230.0040.01216.88
8.0.220.0000.01416.80
8.0.210.0000.01416.81
8.0.200.0040.01116.86
8.0.190.0030.01316.86
8.0.180.0030.01416.74
8.0.170.0060.01016.84
8.0.160.0030.01316.78
8.0.150.0030.01316.86
8.0.140.0030.01316.68
8.0.130.0040.01113.21
8.0.120.0030.01416.79
8.0.110.0000.01616.80
8.0.100.0060.00916.68
8.0.90.0030.01316.65
8.0.80.0100.03016.79
8.0.70.0060.01016.80
8.0.60.0060.00916.83
8.0.50.0000.01616.79
8.0.30.0080.01917.05
8.0.20.0080.02317.40
8.0.10.0060.00917.00
8.0.00.0070.02116.80
7.4.330.0000.01215.06
7.4.320.0030.01016.45
7.4.300.0070.01116.42
7.4.290.0030.01416.52
7.4.280.0030.01516.50
7.4.270.0030.01416.54
7.4.260.0000.01616.50
7.4.250.0030.01316.56
7.4.240.0020.01516.62
7.4.230.0040.01216.71
7.4.220.0030.03016.40
7.4.210.0070.02516.53
7.4.200.0000.01616.68
7.4.160.0070.02016.34
7.4.150.0060.02217.40
7.4.140.0090.02317.86
7.4.130.0100.02016.44
7.4.120.0070.02316.54
7.4.110.0040.02616.61
7.4.100.0130.03116.32
7.4.90.0100.01916.38
7.4.80.0070.02419.39
7.4.70.0150.01816.50
7.4.60.0090.01816.51
7.4.50.0000.02316.27
7.4.40.0110.02216.69
7.4.30.0060.02216.61
7.4.00.0070.01914.77
7.3.330.0000.01413.25
7.3.320.0060.00913.29
7.3.310.0000.01616.20
7.3.300.0000.01616.13
7.3.290.0100.00716.31
7.3.280.0090.02816.29
7.3.270.0110.02017.40
7.3.260.0030.02616.54
7.3.250.0110.02516.33
7.3.240.0060.02416.30
7.3.230.0260.02016.48
7.3.210.0110.01816.18
7.3.200.0120.02119.39
7.3.190.0160.02916.38
7.3.180.0100.02016.55
7.3.170.0170.01316.49
7.3.160.0180.02216.34
7.2.330.0030.03316.41
7.2.320.0160.01616.60
7.2.310.0140.01716.66
7.2.300.0200.03216.56
7.2.290.0090.03716.68
7.2.60.0040.02116.99
7.2.00.0090.01519.59
7.1.200.0060.01915.63
7.1.100.0030.02318.21
7.1.70.0000.02017.07
7.1.60.0030.03819.48
7.1.50.0140.03516.80
7.1.00.0030.09322.44
7.0.200.0070.01416.88
7.0.60.0070.10020.09
7.0.50.0100.05317.73
7.0.40.0130.04720.13
7.0.30.0230.06020.21
7.0.20.0230.10720.06
7.0.10.0030.11020.23
7.0.00.0170.09320.12
5.6.280.0070.11721.04
5.6.210.0130.11720.53
5.6.200.0030.09318.18
5.6.190.0030.08320.39
5.6.180.0270.11020.63
5.6.170.0230.10320.52
5.6.160.0030.07320.59
5.6.150.0030.07318.14
5.6.140.0030.09318.14
5.6.130.0030.13018.13
5.6.120.0070.08721.10
5.6.110.0100.12021.12
5.6.100.0100.12021.03
5.6.90.0070.08721.13
5.6.80.0070.08320.54
5.5.350.0030.12720.31
5.5.340.0070.12718.01
5.5.330.0170.11020.40
5.5.320.0070.13720.27
5.5.310.0400.11020.34
5.5.300.0000.07317.95
5.5.290.0100.13017.93
5.5.280.0070.06720.90
5.5.270.0100.11720.96
5.5.260.0170.11720.77
5.5.250.0130.07320.46
5.5.240.0070.12320.28
5.4.450.0200.12019.32
5.4.440.0230.10719.31
5.4.430.0200.10319.52
5.4.420.0100.08019.36
5.4.410.0200.11019.42
5.4.400.0170.07719.15
5.4.390.0230.12019.17
5.4.380.0200.11319.22
5.4.370.0200.07018.95
5.4.360.0200.06719.15
5.4.350.0270.06318.99
5.4.340.0230.10718.99
5.4.320.0230.11019.14
5.4.310.0270.08019.20
5.4.300.0300.10718.96
5.4.290.0200.07718.87
5.4.280.0230.08019.16
5.4.270.0400.05319.13
5.4.260.0270.07318.99
5.4.250.0230.09319.23
5.4.240.0230.07018.94
5.4.230.0200.07019.06
5.4.220.0170.12019.13
5.4.210.0130.07319.19
5.4.200.0200.10718.83
5.4.190.0100.08018.98
5.4.180.0230.06319.15
5.4.170.0230.11018.86
5.4.160.0170.07318.85
5.4.150.0270.11018.97
5.4.140.0270.11716.29
5.4.130.0370.09316.48
5.4.120.0130.07716.32
5.4.110.0270.06716.60
5.4.100.0230.07316.19
5.4.90.0230.10316.53
5.4.80.0270.08016.41
5.4.70.0230.07316.32
5.4.60.0100.07716.49
5.4.50.0230.07716.42
5.4.40.0130.08016.53
5.4.30.0170.12016.25
5.4.20.0330.08716.37
5.4.10.0200.11316.51
5.4.00.0270.09015.79
5.3.290.0200.04314.68
5.3.280.0230.07014.67
5.3.270.0300.07014.68
5.3.260.0170.07714.52
5.3.250.0270.03014.77
5.3.240.0230.06014.61
5.3.230.0330.05714.61
5.3.220.0270.03314.64
5.3.210.0270.03714.54
5.3.200.0200.04314.48
5.3.190.0330.06714.72
5.3.180.0270.07314.57
5.3.170.0230.06014.47
5.3.160.0470.05714.54
5.3.150.0370.06714.72
5.3.140.0270.04314.63
5.3.130.0230.06014.66
5.3.120.0270.06714.45
5.3.110.0200.03314.53
5.3.100.0230.05714.00
5.3.90.0270.03014.18
5.3.80.0130.04014.23
5.3.70.0200.07313.91
5.3.60.0130.05014.02
5.3.50.0130.04313.89
5.3.40.0270.03713.98
5.3.30.0270.07313.95
5.3.20.0230.04713.76
5.3.10.0170.04313.67
5.3.00.0230.04013.56
5.2.170.0270.05712.35
5.2.160.0270.02712.35
5.2.150.0300.05312.35
5.2.140.0270.05312.35
5.2.130.0230.03312.35
5.2.120.0170.06312.35
5.2.110.0170.03312.35
5.2.100.0170.03012.35
5.2.90.0170.04012.35
5.2.80.0230.04012.35
5.2.70.0200.04012.35
5.2.60.0200.03012.35
5.2.50.0200.06712.35
5.2.40.0230.05012.35
5.2.30.0230.05312.35
5.2.20.0170.03312.35
5.2.10.0130.04312.35
5.2.00.0130.03012.35
5.1.60.0100.02712.35
5.1.50.0200.02712.35
5.1.40.0130.03712.35
5.1.30.0130.03712.35
5.1.20.0130.03012.35
5.1.10.0130.02312.35
5.1.00.0230.03712.35
5.0.50.0030.04012.35
5.0.40.0070.04012.35
5.0.30.0000.04012.35
5.0.20.0130.03712.35
5.0.10.0070.03012.35
5.0.00.0100.06012.35
4.4.90.0130.03312.35
4.4.80.0100.03312.35
4.4.70.0070.03712.35
4.4.60.0100.03312.35
4.4.50.0100.01712.35
4.4.40.0070.05012.35
4.4.30.0070.02312.35
4.4.20.0100.03012.35
4.4.10.0170.02712.35
4.4.00.0100.04312.35
4.3.110.0030.02712.35
4.3.100.0070.03012.35
4.3.90.0100.02012.35
4.3.80.0130.04312.35
4.3.70.0100.03012.35
4.3.60.0100.03012.35
4.3.50.0100.02712.35
4.3.40.0100.04012.35
4.3.30.0030.02712.35
4.3.20.0100.01312.35
4.3.10.0030.02712.35
4.3.00.0070.03312.35

preferences:
60.41 ms | 401 KiB | 5 Q